| 1 | <?php |
||
| 19 | final class ConfigurationMap implements \IteratorAggregate |
||
| 20 | { |
||
| 21 | private $configurations; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string[] $classes |
||
|
|
|||
| 25 | */ |
||
| 26 | public function __construct(array $configurations = []) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $key |
||
| 33 | * @param array $value |
||
| 34 | */ |
||
| 35 | public function add($key, $value) |
||
| 42 | |||
| 43 | public function get($key) { |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function getIterator() |
||
| 54 | } |
||
| 55 |
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.