| 1 | <?php |
||
| 12 | class ObfuscateRequest |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var array<string> |
||
| 16 | */ |
||
| 17 | private $obfuscatedPatterns; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param array $data data |
||
|
|
|||
| 21 | */ |
||
| 22 | public function __construct(array $obfuscatedPatterns) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return array<string> |
||
| 29 | */ |
||
| 30 | public function getObfuscatedPatterns() |
||
| 34 | } |
||
| 35 |
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.