| 1 | <?php |
||
| 11 | class ForLoopMultiple implements Pass\AnalyzerPassInterface |
||
| 12 | { |
||
| 13 | use DefaultMetadataPassTrait; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param Property $prop |
||
|
|
|||
| 17 | * @param Context $context |
||
| 18 | * @return bool |
||
| 19 | */ |
||
| 20 | public function pass($stmt, Context $context) |
||
| 32 | /** |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | public function getRegister() |
||
| 41 | } |
||
| 42 |
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.