Skip to content

Commit a76ffdd

Browse files
committed
fixing array indexing error in php 7
1 parent cef8c08 commit a76ffdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Errors/ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static function handleError(){
4242

4343
register_shutdown_function(function(){
4444
$error = error_get_last();
45-
if($_ENV['lastError'] == $error){
45+
if(array_key_exists('lastError', $_ENV) && $_ENV['lastError'] == $error){
4646
return;
4747
}
4848
$_ENV['lastError'] = $error;

0 commit comments

Comments
 (0)