1 | <?php |
||
8 | class XMLReader extends \XMLReader |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $openUri; |
||
14 | |||
15 | /** |
||
16 | * @var string|null |
||
17 | */ |
||
18 | private $openEncoding; |
||
19 | |||
20 | /** |
||
21 | * @var int |
||
22 | */ |
||
23 | private $openOptions; |
||
24 | |||
25 | /** |
||
26 | * @param string $uri |
||
27 | * @param string|null $encoding |
||
28 | * @param int $options |
||
29 | * @throws InvalidArgumentException |
||
30 | * @throws RuntimeException |
||
31 | */ |
||
32 | public function __construct($uri, $encoding = null, $options = 0) |
||
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | */ |
||
48 | public function open($uri, $encoding = null, $options = 0) |
||
56 | |||
57 | /** |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function reopen() |
||
64 | } |
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.