|
|
|
@ -32,7 +32,7 @@ class LastErrorException extends ErrorException {
|
|
|
|
|
*
|
|
|
|
|
* @return static|null The exception or Null if no last error
|
|
|
|
|
*/
|
|
|
|
|
public static function createFromLastError (bool $checkErrorReporting = true): ?static {
|
|
|
|
|
public static function createFromLastError (bool $checkErrorReporting = true): ?self {
|
|
|
|
|
if (($lastError = error_get_last()) === null) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|