diff --git a/phpmd-ruleset.xml b/phpmd-ruleset.xml
index 96ca0fa73801f0bb8db0919ba665974930ec5624..a626730fd22e512b234c6589b1fe84982f2a6179 100644
--- a/phpmd-ruleset.xml
+++ b/phpmd-ruleset.xml
@@ -5,5 +5,5 @@
          xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
          xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
 
-    <rule ref="vendor/irstea/phpmd-config/strict.xml"/>
+    <rule ref="vendor/irstea/phpmd-config/loose.xml"/>
 </ruleset>
diff --git a/src/Maybe.php b/src/Maybe.php
index 9f42147aaf49ab1b4465b5195aad978e09b6c134..a5a1bca6827f57d8f47ee5762648982384e6a318 100644
--- a/src/Maybe.php
+++ b/src/Maybe.php
@@ -54,19 +54,21 @@ abstract class Maybe implements \IteratorAggregate
     abstract public function resolve(callable $withJust, callable $withNothing);
 
     /**
-     * @param $default
+     * @param mixed $default
      *
      * @return mixed
      */
     abstract public function valueOr($default);
 
     /**
+     * @throws NothingException
+     *
      * @return mixed
      */
     abstract public function value();
 
     /**
-     * @return mixed
+     * @return array
      */
     abstract public function toArray(): array;
 
@@ -108,6 +110,8 @@ abstract class Maybe implements \IteratorAggregate
 
     /**
      * @param callable $generator
+     *
+     * @return Maybe
      */
     public static function run(callable $generator): Maybe
     {
diff --git a/src/Maybe/Just.php b/src/Maybe/Just.php
index 4c8e1387297df8fe8a17bea90f099b10bb70fb82..f15984bcf9cd9a2eaee3c2b63339e1475aa384c1 100644
--- a/src/Maybe/Just.php
+++ b/src/Maybe/Just.php
@@ -22,7 +22,7 @@ final class Just extends Maybe
     /**
      * Just constructor.
      *
-     * @param $value
+     * @param mixed $value
      */
     private function __construct($value)
     {