1 | <?php |
||
10 | class NotOp implements OperatorInterface |
||
11 | { |
||
12 | protected $op; |
||
13 | |||
14 | public function __construct($op) |
||
18 | |||
19 | /** |
||
20 | * Test the provided value to see if it matches our criteria. |
||
21 | * |
||
22 | * @param mixed $value |
||
|
|||
23 | * @return bool |
||
24 | */ |
||
25 | public function test(Data $row) |
||
29 | |||
30 | /** |
||
31 | * Return a string representation of this operator |
||
32 | */ |
||
33 | public function __toString() |
||
37 | } |
||
38 |
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.