1 | <?php |
||
5 | class CombineIterator extends TraversableIterator |
||
6 | { |
||
7 | const NEED_ANY = \MultipleIterator::MIT_NEED_ANY; |
||
8 | const NEED_ALL = \MultipleIterator::MIT_NEED_ALL; |
||
9 | |||
10 | 2 | public function __construct(\Traversable $keysIterator, \Traversable $valuesIterator, int $flags = self::NEED_ANY) |
|
17 | |||
18 | 2 | public function key() |
|
23 | |||
24 | 2 | public function current() |
|
29 | } |
||
30 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.