[ErrorHandler] made IDEs and static analysis tools happy
This commit is contained in:
parent
45526a18c6
commit
7dd9dbf28d
@ -62,7 +62,7 @@ class ErrorRenderer
|
||||
throw new ErrorRendererNotFoundException(sprintf('No error renderer found for format "%s".', $format));
|
||||
}
|
||||
|
||||
if (!$exception instanceof FlattenException) {
|
||||
if ($exception instanceof \Exception) {
|
||||
$exception = FlattenException::create($exception);
|
||||
}
|
||||
|
||||
|
@ -160,7 +160,7 @@ class ExceptionHandler
|
||||
*/
|
||||
public function sendPhpResponse($exception)
|
||||
{
|
||||
if (!$exception instanceof FlattenException) {
|
||||
if ($exception instanceof \Exception) {
|
||||
$exception = FlattenException::create($exception);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user