Skip to content

Commit

Permalink
minor #51096 Use more "First class callable syntax" + Normalize set_e…
Browse files Browse the repository at this point in the history
…rror_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
  • Loading branch information
nicolas-grekas committed Jul 26, 2023
2 parents ab0c940 + 36d2394 commit 952a8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ private static function box(string $func, mixed ...$args): mixed
self::assertFunctionExists($func);

self::$lastError = null;
set_error_handler(__CLASS__.'::handleError');
set_error_handler(self::handleError(...));
try {
return $func(...$args);
} finally {
Expand Down

0 comments on commit 952a8cb

Please sign in to comment.