diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index cce6fca0f..3a294e1b5 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -2144,10 +2144,6 @@ class Server{ * @param array|null $trace */ public function exceptionHandler(\Throwable $e, $trace = null){ - if($e === null){ - return; - } - global $lastError; if($trace === null){ @@ -2205,7 +2201,7 @@ class Server{ } } - if($dump->getData()["error"]["type"] === "E_PARSE" or $dump->getData()["error"]["type"] === "E_COMPILE_ERROR"){ + if($dump->getData()["error"]["type"] === \ParseError::class){ $report = false; }