| 1 | <?php |
||
| 17 | abstract class AbstractErrorResponse extends AbstractResponse |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $errorCode; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * ErrorBag as defined in http://jsonapi.org/format/#error-objects;. |
||
| 26 | * |
||
| 27 | * @link http://jsonapi.org/format/#error-objects |
||
| 28 | * |
||
| 29 | * @param ErrorBag $errors |
||
| 30 | */ |
||
| 31 | public function __construct(ErrorBag $errors = null) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | protected function getDefaultError() |
||
| 50 | } |
||
| 51 |
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.