| 1 | <?php |
||
| 13 | abstract class AbstractPass |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var Parser |
||
| 17 | */ |
||
| 18 | protected $parser; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var ParsedText Text being parsed |
||
| 22 | */ |
||
| 23 | protected $text; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param ParsedText $parsedText |
||
|
|
|||
| 27 | */ |
||
| 28 | 263 | public function __construct(Parser $parser, ParsedText $text) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Parse the prepared text from stored parser |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | abstract public function parse(); |
||
| 40 | } |
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.