From 81af47f183c31f4ec7db6003c4f588d30704ce42 Mon Sep 17 00:00:00 2001 From: Guillermo Pages Date: Mon, 30 Aug 2021 12:50:26 +0200 Subject: [PATCH] fix: php8 unknown named parameter --- composer.json | 5 ++--- src/Webservice/WebService.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 7024d6c..a7e20b9 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ ], "repositories" : [ { - "type" : "vcs", + "type" : "vcs", "url" : "https://usrpath@bitbucket.org/usrpath/bsrutils.git" } ], @@ -27,7 +27,6 @@ }, "require-dev": { "bsr/utils" : "dev-master", - "pds/skeleton": "^1.0", - "phpunit/phpunit": "^6" + "phpunit/phpunit": "^8" } } diff --git a/src/Webservice/WebService.php b/src/Webservice/WebService.php index 2818b1c..74e7052 100644 --- a/src/Webservice/WebService.php +++ b/src/Webservice/WebService.php @@ -117,7 +117,7 @@ abstract class WebService 'func' => $this->func.'('.implode(', ', $params).')', )); - return call_user_func_array(array($this, $this->func), $params); + return call_user_func_array(array($this, $this->func), array_values($params)); } /**