diff --git a/src/LastErrorException/LastErrorException.php b/src/LastErrorException/LastErrorException.php index 03f17e7..dd82ac0 100644 --- a/src/LastErrorException/LastErrorException.php +++ b/src/LastErrorException/LastErrorException.php @@ -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; }