mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-26 00:37:18 +00:00
Fixed PHP 5.2 compatibility
This commit is contained in:
parent
e37db25ce0
commit
e5d1846d4b
1 changed files with 3 additions and 3 deletions
|
@ -134,7 +134,7 @@ class ErrorHandler {
|
|||
$e->getTraceAsString()
|
||||
);
|
||||
|
||||
static::$_bailExceptionRendering = true;
|
||||
self::$_bailExceptionRendering = true;
|
||||
trigger_error($message, E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
|
@ -266,8 +266,8 @@ class ErrorHandler {
|
|||
$exception = new InternalErrorException();
|
||||
}
|
||||
|
||||
if (static::$_bailExceptionRendering) {
|
||||
static::$_bailExceptionRendering = false;
|
||||
if (self::$_bailExceptionRendering) {
|
||||
self::$_bailExceptionRendering = false;
|
||||
throw $exception;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue