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