| 1 | <?php |
||
| 11 | class RegExNotExistsRule extends StandardRule |
||
| 12 | { |
||
| 13 | private $regExs; |
||
| 14 | |||
| 15 | protected $contentTypes = array('text/html'); |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param int $string The string that the document must contain |
||
|
|
|||
| 19 | */ |
||
| 20 | public function init(array $regExs) |
||
| 24 | |||
| 25 | protected function doValidation(ResponseInterface $response) |
||
| 32 | } |
||
| 33 |
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.