1 | <?php |
||
11 | final class ApplicationConfigIterator extends RecursiveIteratorIterator |
||
12 | { |
||
13 | /** |
||
14 | * @var string[] |
||
15 | */ |
||
16 | private $path = []; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $separator; |
||
22 | |||
23 | /** |
||
24 | * @param ApplicationConfig $config |
||
25 | */ |
||
26 | public function __construct(ApplicationConfig $config) |
||
34 | |||
35 | public function key() |
||
39 | |||
40 | public function next() |
||
48 | |||
49 | public function rewind() |
||
55 | |||
56 | public function endChildren() |
||
60 | } |
||
61 |
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.