diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1980d8e..c7ad335 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -50,3 +50,5 @@ jobs:
run: composer update -o --no-interaction --no-progress ${{ matrix.COMPOSER_FLAGS }}
- name: "composer-require-checker"
run: vendor/bin/composer-require-checker check composer.json
+ - name: "PHP CS Fixer"
+ run: vendor/bin/php-cs-fixer check -v
diff --git a/composer.json b/composer.json
index e3239ca..e364f4e 100644
--- a/composer.json
+++ b/composer.json
@@ -11,13 +11,12 @@
],
"require": {
"php": "^7.4 || ^8.0",
- "symfony/process": "^4.4 || ^5 || ^6 || ^7"
+ "symfony/process": "^5.4 || ^6.4 || ^7.2"
},
"require-dev": {
- "friendsofphp/php-cs-fixer": "^3.1",
- "maglnet/composer-require-checker": "^2 || ^3",
- "phpunit/phpunit": "^7.5.20 || ^8.5.14 || ^9.5",
- "symfony/phpunit-bridge": "^5.3.7 || ^6 || ^7"
+ "friendsofphp/php-cs-fixer": "^3.75",
+ "maglnet/composer-require-checker": "^3.8 || ^4",
+ "phpunit/phpunit": "^9.6.22 || ^10.5.45 || ^11.5.12"
},
"config": {
"optimize-autoloader": true,
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 7b2405b..4612095 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -16,10 +16,6 @@
-
-
-
-
./src
diff --git a/src/CommandExecutor.php b/src/CommandExecutor.php
index 6c48a7e..f3774ee 100644
--- a/src/CommandExecutor.php
+++ b/src/CommandExecutor.php
@@ -72,7 +72,7 @@ public function getResult(bool $checkCode = true): CliResult
if ($checkCode && 0 !== $this->result->getCode()) {
throw new ExecutionException(
$this->result,
- sprintf(
+ \sprintf(
"Cannot execute `%s`:\nCode: %s\nExit text: %s\nError output: %s\nDetails:\n%s",
$process->getCommandLine(),
$this->result->getCode(),
diff --git a/src/ScriptExecutor.php b/src/ScriptExecutor.php
index da61f47..8ecdd0f 100644
--- a/src/ScriptExecutor.php
+++ b/src/ScriptExecutor.php
@@ -100,7 +100,7 @@ public function getResult(bool $checkCode = true): CliResult
if ($checkCode && 0 !== $this->result->getCode()) {
throw new ExecutionException(
$this->result,
- sprintf(
+ \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)),