We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 22 | final class Result implements ResultInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var bool |
||
| 26 | */ |
||
| 27 | private $isValid; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var mixed |
||
| 31 | */ |
||
| 32 | private $input; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var RuleInterface |
||
| 36 | */ |
||
| 37 | private $rule; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var RuleInterface[] |
||
| 41 | */ |
||
| 42 | private $children; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var array |
||
| 46 | */ |
||
| 47 | private $properties; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param bool $isValid |
||
| 51 | * @param mixed $input |
||
| 52 | * @param RuleInterface $rule |
||
| 53 | * @param array $properties |
||
| 54 | * @param RuleInterface[] $children |
||
| 55 | */ |
||
| 56 | 11 | public function __construct($isValid, $input, RuleInterface $rule, array $properties = [], array $children = []) |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @param ResultInterface[] $children |
||
| 69 | */ |
||
| 70 | 11 | private function checkChildrenInstance(array $children) |
|
| 80 | |||
| 81 | /** |
||
| 82 | * {@inheritdoc} |
||
| 83 | */ |
||
| 84 | 8 | public function isValid() |
|
| 88 | |||
| 89 | /** |
||
| 90 | * {@inheritdoc} |
||
| 91 | */ |
||
| 92 | 8 | public function getInput() |
|
| 96 | |||
| 97 | /** |
||
| 98 | * {@inheritdoc} |
||
| 99 | */ |
||
| 100 | 8 | public function getRule() |
|
| 104 | |||
| 105 | /** |
||
| 106 | * {@inheritdoc} |
||
| 107 | */ |
||
| 108 | 8 | public function getChildren() |
|
| 112 | |||
| 113 | /** |
||
| 114 | * {@inheritdoc} |
||
| 115 | */ |
||
| 116 | 8 | public function getProperties() |
|
| 120 | |||
| 121 | /** |
||
| 122 | * {@inheritdoc} |
||
| 123 | */ |
||
| 124 | 7 | public function with($isValid, array $properties = []) |
|
| 134 | } |
||
| 135 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: