1 | <?php |
||
11 | class ResponseUtility extends Response implements |
||
12 | ContainerInjectableInterface |
||
13 | { |
||
14 | use ContainerInjectableTrait; |
||
15 | |||
16 | |||
17 | |||
18 | /** |
||
19 | * Redirect to another page and creating an url from the argument. |
||
20 | * |
||
21 | * @param string $url to redirect to |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | 1 | public function redirect($url) |
|
29 | |||
30 | |||
31 | |||
32 | /** |
||
33 | * Redirect to current page. |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | 1 | public function redirectSelf() |
|
42 | } |
||
43 |
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.