diff --git a/bundles/CoreBundle/src/Command/Bundle/ListCommand.php b/bundles/CoreBundle/src/Command/Bundle/ListCommand.php index 48cf1d03f1f..32b1d83742a 100644 --- a/bundles/CoreBundle/src/Command/Bundle/ListCommand.php +++ b/bundles/CoreBundle/src/Command/Bundle/ListCommand.php @@ -99,9 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int } if ($input->getOption('json')) { - $jsonData = array_map(static function ($row) use ($returnData) { - return array_combine($returnData['headers'], $row); - }, $returnData['rows']); + $jsonData = array_map(fn($row) => array_combine($returnData['headers'], $row), $returnData['rows']); $output->write(\json_encode($jsonData, \JSON_PRETTY_PRINT)); } else { $table = new Table($output); diff --git a/composer.json b/composer.json index 27e42848da4..9d83bdadc21 100644 --- a/composer.json +++ b/composer.json @@ -139,8 +139,8 @@ "codeception/codeception": "^5.0.3", "codeception/module-symfony": "^3.1.0", "codeception/phpunit-wrapper": "^9", - "phpstan/phpstan": "1.10.5", - "phpstan/phpstan-symfony": "^1.2.20", + "phpstan/phpstan": "1.10.26", + "phpstan/phpstan-symfony": "^1.3.2", "phpunit/phpunit": "^9.3", "gotenberg/gotenberg-php": "^1.1", "composer/composer": "*", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 9a752d304d0..e8f552f2315 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -113,6 +113,10 @@ parameters: message: "#^Call to an undefined method COM\\:\\:Run\\(\\)\\.$#" count: 1 path: lib/Tool/Console.php + - + message: "#^Ternary operator condition is always true\\.$#" + count: 1 + path: lib/Tool/Requirements.php - message: "#^Dead catch \\- Throwable is never thrown in the try block\\.$#"