| 1 | <?php |
||
| 5 | class ShuffleIterator extends ReplaceableIterator implements \Countable |
||
| 6 | { |
||
| 7 | private $min = INF; |
||
| 8 | private $max = -INF; |
||
| 9 | private $innerIterator; |
||
| 10 | 1 | ||
| 11 | public function __construct(\Traversable $iterator) |
||
| 16 | |||
| 17 | /** |
||
| 18 | 1 | * @param \Traversable $iterator |
|
|
|
|||
| 19 | */ |
||
| 20 | 1 | public function rewind() |
|
| 37 | |||
| 38 | /** |
||
| 39 | 1 | * @param \Traversable $iterator |
|
| 40 | */ |
||
| 41 | 1 | protected function generateElement($key, $value, $iterator) |
|
| 45 | |||
| 46 | 1 | public function count() |
|
| 50 | |||
| 51 | 1 | public function first() |
|
| 56 | 1 | ||
| 57 | public function last() |
||
| 62 | 1 | ||
| 63 | public function min() |
||
| 67 | 1 | ||
| 68 | 1 | public function max() |
|
| 72 | } |
||
| 73 |
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.