1 | <?php |
||
14 | class MethodGenerator extends ZendMethodGenerator |
||
15 | { |
||
16 | /** |
||
17 | * @return static |
||
18 | */ |
||
19 | public static function fromReflectionWithoutBodyAndDocBlock(MethodReflection $reflectionMethod) : self |
||
29 | 19 | ||
30 | /** |
||
31 | * {@inheritDoc} override needed to specify type in more detail |
||
32 | */ |
||
33 | public function getDocBlock() : ?DocBlockGenerator |
||
37 | |||
38 | /** |
||
39 | * {@inheritDoc} override needed to specify type in more detail |
||
40 | */ |
||
41 | public function getSourceContent() : ?string |
||
45 | } |
||
46 |
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.