1 | <?php |
||
7 | class None |
||
8 | { |
||
9 | /** |
||
10 | * Check whether a collection doesn't contain any occurrences of a given |
||
11 | * item, key-value pair, or passing truth test. `none` accepts the same |
||
12 | * parameters as the `contains` collection method. |
||
13 | * |
||
14 | * @see \Illuminate\Support\Collection::contains |
||
15 | * |
||
16 | * @param mixed $key |
||
|
|||
17 | * @param mixed $value |
||
18 | * |
||
19 | * @return bool |
||
20 | */ |
||
21 | public function none() |
||
31 | } |
||
32 |
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.