| 1 | <?php |
||
| 10 | class ContainsOp implements OperatorInterface |
||
| 11 | { |
||
| 12 | protected $key; |
||
| 13 | protected $comparitor; |
||
| 14 | |||
| 15 | public function __construct($key, $comparitor) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Test the provided value to see if it matches our criteria. |
||
| 23 | * |
||
| 24 | * @param mixed $value |
||
|
|
|||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | public function test(Data $row) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Return a string representation of this operator |
||
| 38 | */ |
||
| 39 | public function __toString() |
||
| 43 | } |
||
| 44 |
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.