| 1 | <?php |
||
| 22 | class AbstractExceptionNormalizer |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var ExceptionValueMap |
||
| 26 | */ |
||
| 27 | private $messagesMap; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var bool |
||
| 31 | */ |
||
| 32 | private $debug; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param array $messagesMap |
||
| 36 | * @param bool $debug |
||
| 37 | */ |
||
| 38 | 12 | public function __construct(ExceptionValueMap $messagesMap, $debug) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Extracts the exception message. |
||
| 46 | * |
||
| 47 | * @param \Throwable $throwable |
||
| 48 | * @param int|null $statusCode |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 7 | protected function getMessageFromThrowable(\Throwable $throwable, $statusCode = null) |
|
| 62 | } |
||
| 63 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.