Skip to content

Commit

Permalink
fix named pamareters confusion with PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Oct 2, 2020
1 parent 47c9389 commit 8755ce1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Bartlett/CompatInfo/Console/CommandFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit 8755ce1

Please sign in to comment.