From 5a348abe38d6f39de4f36a10928a160849da2a4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCnter?= <1008534+matzeeable@users.noreply.github.com> Date: Wed, 3 Jan 2024 10:09:00 +0100 Subject: [PATCH] fix: use spread operator instead of call_user_func_array to be compatible with PHP Scoper --- src/Support/Helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/Helpers.php b/src/Support/Helpers.php index 547220b7..c84c18fa 100644 --- a/src/Support/Helpers.php +++ b/src/Support/Helpers.php @@ -31,7 +31,7 @@ public static function apiPath($pathFormat, $args = null, $_ = null) } array_unshift($arguments, $pathFormat); - return call_user_func_array('sprintf', $arguments); + return sprintf(...$arguments); } /**