1 | <?php namespace Spatie\CollectionMacros\Macros; |
||
6 | class Validate |
||
7 | { |
||
8 | /* |
||
9 | * Returns true if $callback returns true for every item. If $callback |
||
10 | * is a string or an array, regard it as a validation rule. |
||
11 | * |
||
12 | * @param string|callable $callback |
||
|
|||
13 | * |
||
14 | * @return bool |
||
15 | */ |
||
16 | public function validate() |
||
44 | } |
||
45 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.