From dfdb300f5f296be05db806ddcfa81bdfacb74dd5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 7 Apr 2021 21:41:11 +0200 Subject: [PATCH] fix PHP 8 error: array_merge() does not accept unknown named parameters --- api/src/Framework/Bundle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Framework/Bundle.php b/api/src/Framework/Bundle.php index f6611ca9f1..44ce6d90c7 100644 --- a/api/src/Framework/Bundle.php +++ b/api/src/Framework/Bundle.php @@ -241,7 +241,7 @@ class Bundle $bundles['et2'] = array_diff($inc_mgr->get_included_files(), $bundles['api']); self::urls($bundles['et2'], $max_mod['et2']); - $stock_files = call_user_func_array('array_merge', $bundles); + $stock_files = array_merge(...array_values($bundles)); // generate template and app bundles, if installed foreach(array(