1 | <?php |
||
7 | class TaisiyaStyle extends SymfonyStyle |
||
8 | { |
||
9 | /** |
||
10 | * Outputs a replacable line to the cli. |
||
11 | * You can continue replacing the line until TRUE is passed as the second parameter |
||
12 | * in order to indicate you are done modifying the line. |
||
13 | * |
||
14 | * @param $messages |
||
15 | * @param bool $endline Whether the line is done being replaced |
||
16 | * @param int $type |
||
17 | */ |
||
18 | public function writeReplace($messages, bool $endline = false, int $type = self::OUTPUT_NORMAL): void |
||
36 | } |
||
37 |
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.