From 1e456edda1601dceb8c4f71d32b34ef8cde54c45 Mon Sep 17 00:00:00 2001 From: Julien Rosset Date: Fri, 30 Dec 2022 11:10:48 +0100 Subject: [PATCH] Fix method signature --- src/LastErrorException/LastErrorException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }