Skip to content

Commit 495f7ba

Browse files
authored
chore: upgrade deps, drop symfony/phpunit-bridge (#11)
1 parent 106aa57 commit 495f7ba

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ jobs:
5050
run: composer update -o --no-interaction --no-progress ${{ matrix.COMPOSER_FLAGS }}
5151
- name: "composer-require-checker"
5252
run: vendor/bin/composer-require-checker check composer.json
53+
- name: "PHP CS Fixer"
54+
run: vendor/bin/php-cs-fixer check -v

composer.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@
1111
],
1212
"require": {
1313
"php": "^7.4 || ^8.0",
14-
"symfony/process": "^4.4 || ^5 || ^6 || ^7"
14+
"symfony/process": "^5.4 || ^6.4 || ^7.2"
1515
},
1616
"require-dev": {
17-
"friendsofphp/php-cs-fixer": "^3.1",
18-
"maglnet/composer-require-checker": "^2 || ^3",
19-
"phpunit/phpunit": "^7.5.20 || ^8.5.14 || ^9.5",
20-
"symfony/phpunit-bridge": "^5.3.7 || ^6 || ^7"
17+
"friendsofphp/php-cs-fixer": "^3.75",
18+
"maglnet/composer-require-checker": "^3.8 || ^4",
19+
"phpunit/phpunit": "^9.6.22 || ^10.5.45 || ^11.5.12"
2120
},
2221
"config": {
2322
"optimize-autoloader": true,

phpunit.xml.dist

-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
</testsuite>
1717
</testsuites>
1818

19-
<listeners>
20-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
21-
</listeners>
22-
2319
<filter>
2420
<whitelist>
2521
<directory>./src</directory>

src/CommandExecutor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function getResult(bool $checkCode = true): CliResult
7272
if ($checkCode && 0 !== $this->result->getCode()) {
7373
throw new ExecutionException(
7474
$this->result,
75-
sprintf(
75+
\sprintf(
7676
"Cannot execute `%s`:\nCode: %s\nExit text: %s\nError output: %s\nDetails:\n%s",
7777
$process->getCommandLine(),
7878
$this->result->getCode(),

src/ScriptExecutor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function getResult(bool $checkCode = true): CliResult
100100
if ($checkCode && 0 !== $this->result->getCode()) {
101101
throw new ExecutionException(
102102
$this->result,
103-
sprintf(
103+
\sprintf(
104104
"Cannot execute `%s`:\n%s\nCode: %s\nExit text: %s\nError output: %s\nDetails:\n%s",
105105
$command,
106106
implode("\n", array_map(static function ($line) { return "$ {$line}"; }, $tmpFileLines)),

0 commit comments

Comments
 (0)