| 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 self  | 
            ||
| 24 | */  | 
            ||
| 25 | 1 | public function redirect(string $url) : object  | 
            |
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * Redirect to current page.  | 
            ||
| 34 | *  | 
            ||
| 35 | * @return self  | 
            ||
| 36 | */  | 
            ||
| 37 | 1 | public function redirectSelf() : object  | 
            |
| 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 theSoncalls the wrong method in the parent class.