| 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) |
||
| 43 | |||
| 44 | public function get($key) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function getIterator() |
||
| 56 | } |
||
| 57 |
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.