| 1 | <?php |
||
| 17 | final class Dictionary implements Countable |
||
| 18 | { |
||
| 19 | |||
| 20 | private $values; |
||
| 21 | |||
| 22 | public function __construct(array $values = []) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * |
||
| 29 | * |
||
| 30 | * @param string $value |
||
|
|
|||
| 31 | * |
||
| 32 | * @return boolean |
||
| 33 | */ |
||
| 34 | public function containsKey($key) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $value |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | public function get($key) |
||
| 51 | |||
| 52 | public function set($key, $value) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return int |
||
| 60 | */ |
||
| 61 | public function count() |
||
| 65 | |||
| 66 | public function toArray() |
||
| 70 | |||
| 71 | public static function fromArray(array $values = []) |
||
| 85 | |||
| 86 | } |
||
| 87 |
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.