La migration est terminée. Bien qu'elle a été beaucoup plus longue que prévue, elle s'est bien déroulée. N'hésitez pas à signaler tout problème à forge.support@irstea.fr.

Commit 8fee3be3 authored by Guillaume Perréal's avatar Guillaume Perréal

CS.

parent bc62bf32
Pipeline #5740 passed with stages
in 1 minute and 47 seconds
......@@ -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>
......@@ -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
{
......
......@@ -22,7 +22,7 @@ final class Just extends Maybe
/**
* Just constructor.
*
* @param $value
* @param mixed $value
*/
private function __construct($value)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment