diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 55cd144..950f87a 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -12,12 +12,11 @@ return (new PhpCsFixer\Config()) ->setRiskyAllowed(true) ->setRules(array( - '@PHP71Migration' => true, - '@PHP71Migration:risky' => true, - '@PHPUnit75Migration:risky' => true, + '@auto' => true, + '@auto:risky' => true, '@PhpCsFixer' => true, '@PhpCsFixer:risky' => true, - // 'general_phpdoc_annotation_remove' => ['annotations' => ['expectedDeprecation']], // one should use PHPUnit built-in method instead + 'general_phpdoc_annotation_remove' => ['annotations' => ['expectedDeprecation']], // one should use PHPUnit built-in method instead 'header_comment' => ['header' => $header], )) ->setFinder( diff --git a/composer.json b/composer.json index d455dd5..7857a4e 100644 --- a/composer.json +++ b/composer.json @@ -11,12 +11,12 @@ ], "require": { "php": "^7.4 || ^8.0", - "symfony/process": "^5.4 || ^6.4 || ^7.2 || ^8.0" + "symfony/process": "^5.4 || ^6.4 || ^7.3 || ^8.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.75", - "maglnet/composer-require-checker": "^3.8 || ^4", - "phpunit/phpunit": "^9.6.22 || ^10.5.45 || ^11.5.12" + "friendsofphp/php-cs-fixer": "^3.89", + "maglnet/composer-require-checker": "^3.8 || ^4.18", + "phpunit/phpunit": "^9.6.22 || ^10.5.58 || ^11.5.43" }, "config": { "optimize-autoloader": true, diff --git a/src/ScriptExecutor.php b/src/ScriptExecutor.php index 8ecdd0f..f1512a0 100644 --- a/src/ScriptExecutor.php +++ b/src/ScriptExecutor.php @@ -103,7 +103,7 @@ public function getResult(bool $checkCode = true): CliResult \sprintf( "Cannot execute `%s`:\n%s\nCode: %s\nExit text: %s\nError output: %s\nDetails:\n%s", $command, - implode("\n", array_map(static function ($line) { return "$ {$line}"; }, $tmpFileLines)), + implode("\n", array_map(static fn ($line) => "$ {$line}", $tmpFileLines)), $this->result->getCode(), isset(Process::$exitCodes[$this->result->getCode()]) ? Process::$exitCodes[$this->result->getCode()] : 'Unknown exit code', $this->result->getError(),