Skip to content

Commit ad5325f

Browse files
minor #51096 Use more "First class callable syntax" + Normalize set_error_handler/set_exception_handler calls (lyrixx)
This PR was merged into the 6.4 branch. Discussion ---------- Use more "First class callable syntax" + Normalize set_error_handler/set_exception_handler calls | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- be1bbbccc1 Use more "First class callable syntax" + Normalize set_error_handler/set_exception_handler calls
2 parents a6f3abe + 7fbbc36 commit ad5325f

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
@@ -112,7 +112,7 @@ public static function register(self $handler = null, bool $replace = true): sel
112112
{
113113
if (null === self::$reservedMemory) {
114114
self::$reservedMemory = str_repeat('x', 32768);
115-
register_shutdown_function(__CLASS__.'::handleFatalError');
115+
register_shutdown_function(self::handleFatalError(...));
116116
}
117117

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

0 commit comments

Comments
 (0)