We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 25 | final class AllOf implements Rule |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * @var Rule[] |
||
| 29 | */ |
||
| 30 | private $rules = []; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Initializes the rule. |
||
| 34 | * |
||
| 35 | * @param Result $child |
||
|
|
|||
| 36 | * @param Result ...$child2 |
||
| 37 | */ |
||
| 38 | 1 | public function __construct(Rule ...$rule) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 19 | public function validate($input): Result |
|
| 58 | } |
||
| 59 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.