Skip to content

Commit

Permalink
Fix "Trying to access array offset on value of type null"
Browse files Browse the repository at this point in the history
  • Loading branch information
agraciakuvut committed Apr 29, 2021
1 parent 918158e commit fb91863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function shutdownFunction()
E_CORE_ERROR,
E_COMPILE_ERROR
);
if (in_array($error['type'], $save_errors)) {
if ($error && in_array($error['type'], $save_errors)) {
$errortypes = array(
E_ERROR => 'Fatal error',
E_CORE_ERROR => 'Fatal error (Core Error)',
Expand Down Expand Up @@ -137,4 +137,4 @@ private function load($classname)


}
}
}

0 comments on commit fb91863

Please sign in to comment.