From 8755ce1c9791059047da7a4a1ca1d03a1c4e33de Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 2 Oct 2020 16:48:58 +0200 Subject: [PATCH] fix named pamareters confusion with PHP 8 --- src/Bartlett/CompatInfo/Console/CommandFactory.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Bartlett/CompatInfo/Console/CommandFactory.php b/src/Bartlett/CompatInfo/Console/CommandFactory.php index fdbb6938..910c6c5f 100644 --- a/src/Bartlett/CompatInfo/Console/CommandFactory.php +++ b/src/Bartlett/CompatInfo/Console/CommandFactory.php @@ -318,7 +318,7 @@ function (GenericEvent $event) use ($progress) { try { $response = call_user_func_array( array($api, $methodName), - $args + array_values($args) ); } catch (\Exception $e) { $response = $e; @@ -362,9 +362,8 @@ function (GenericEvent $event) use ($progress) { } return; } - if (!method_exists($outputFormatter, $methodName) - || !is_callable(array($outputFormatter, $methodName)) + || !is_callable(array($outputFormatter, $methodName), true) || $output->isDebug() ) { $style = 'debug';