Skip to content

Commit 7fbbc36

Browse files
committed
Use more "First class callable syntax" + Normalize set_error_handler/set_exception_handler calls
1 parent ce64303 commit 7fbbc36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public static function register(self $handler = null, bool $replace = true): sel
111111
{
112112
if (null === self::$reservedMemory) {
113113
self::$reservedMemory = str_repeat('x', 32768);
114-
register_shutdown_function(__CLASS__.'::handleFatalError');
114+
register_shutdown_function(self::handleFatalError(...));
115115
}
116116

117117
if ($handlerIsNew = null === $handler) {

0 commit comments

Comments
 (0)