We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 19 | final class StandardResult implements Result |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var bool |
||
| 23 | */ |
||
| 24 | private $isValid; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var mixed |
||
| 28 | */ |
||
| 29 | private $input; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var Rule |
||
| 33 | */ |
||
| 34 | private $rule; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var Rule[] |
||
| 38 | */ |
||
| 39 | private $children; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var array |
||
| 43 | */ |
||
| 44 | private $properties; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param bool $isValid |
||
| 48 | * @param mixed $input |
||
| 49 | * @param Rule $rule |
||
| 50 | * @param array $properties |
||
| 51 | * @param Result $children... |
||
|
|
|||
| 52 | */ |
||
| 53 | 10 | public function __construct($isValid, $input, Rule $rule, array $properties = [], Result ...$children) |
|
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | 8 | public function isValid(): bool |
|
| 69 | |||
| 70 | /** |
||
| 71 | * {@inheritdoc} |
||
| 72 | */ |
||
| 73 | 8 | public function getInput() |
|
| 77 | |||
| 78 | /** |
||
| 79 | * {@inheritdoc} |
||
| 80 | */ |
||
| 81 | 8 | public function getRule(): Rule |
|
| 85 | |||
| 86 | /** |
||
| 87 | * {@inheritdoc} |
||
| 88 | */ |
||
| 89 | 8 | public function getChildren(): array |
|
| 93 | |||
| 94 | /** |
||
| 95 | * {@inheritdoc} |
||
| 96 | */ |
||
| 97 | 8 | public function getProperties(): array |
|
| 101 | |||
| 102 | /** |
||
| 103 | * {@inheritdoc} |
||
| 104 | */ |
||
| 105 | 7 | public function with($isValid, array $properties = []): Result |
|
| 115 | } |
||
| 116 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.