Skip to content

Commit aa0f51a

Browse files
committed
correction to remove reference to self in ananymous function
1 parent 156789d commit aa0f51a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Errors/ErrorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ static function handleError(){
4444

4545
register_shutdown_function(function(){
4646
$error = error_get_last();
47-
if(self::$lastError == $error){
47+
if(ErrorHandler::$lastError == $error){
4848
return;
4949
}
50-
self::$lastError = $error;
50+
ErrorHandler::$lastError = $error;
5151
if(is_array($error) &&
5252
($error["type"] == E_ERROR || $error["type"] == E_PARSE || $error["type"] == E_CORE_ERROR || $error["type"] == E_COMPILE_ERROR)){
5353
if(ob_get_contents() !== false){

0 commit comments

Comments
 (0)