We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83a6fee commit 715e7a5Copy full SHA for 715e7a5
Filesystem.php
@@ -746,14 +746,16 @@ private function getSchemeAndHierarchy(string $filename): array
746
}
747
748
/**
749
+ * @param mixed ...$args
750
+ *
751
* @return mixed
752
*/
- private static function box(callable $func)
753
+ private static function box(callable $func, ...$args)
754
{
755
self::$lastError = null;
756
set_error_handler(__CLASS__.'::handleError');
757
try {
- $result = $func(...\array_slice(\func_get_args(), 1));
758
+ $result = $func(...$args);
759
restore_error_handler();
760
761
return $result;
0 commit comments