| 1 | <?php |
||
| 13 | class DuplicatedVariablesInUseClosure implements AnalyzerPassInterface |
||
| 14 | { |
||
| 15 | use DefaultMetadataPassTrait; |
||
| 16 | |||
| 17 | const DESCRIPTION = 'Check for duplicate variables in use statement'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param Closure $funcCall |
||
|
|
|||
| 21 | * @param Context $context |
||
| 22 | * @return bool |
||
| 23 | */ |
||
| 24 | 2 | public function pass(Closure $expr, Context $context) |
|
| 44 | |||
| 45 | 2 | public function getRegister() |
|
| 51 | } |
||
| 52 |
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.