Fix method signature

master 1.0.2
Julien Rosset 3 years ago
parent 00bd3e78b0
commit 1e456edda1

@ -32,7 +32,7 @@ class LastErrorException extends ErrorException {
* *
* @return static|null The exception or Null if no last error * @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) { if (($lastError = error_get_last()) === null) {
return null; return null;
} }

Loading…
Cancel
Save