1 | <?php |
||
29 | 1 | class Filter extends Filters\FilterIterator |
|
30 | { |
||
31 | /** |
||
32 | * @var integer |
||
33 | */ |
||
34 | protected $status; |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function __construct(\Iterator $iterator, array $options = []) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function accept() : bool |
||
57 | } |
||
58 |
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.