Skip to content

Commit b09e8f6

Browse files
authored
Merge pull request #18 from pluswerk/php8.3-rc
2 parents f801d77 + df12d3b commit b09e8f6

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/run-grumphp-test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9-
php:
10-
- '8.1'
11-
- '8.2'
9+
php: ['8.1', '8.2', '8.3-rc']
1210
container:
1311
image: kanti/buildy:${{ matrix.php }}
1412
steps:
15-
- uses: actions/checkout@v2
16-
- run: COMPOSER_ROOT_VERSION=dev-main composer install --no-progress --no-scripts -n
13+
- uses: actions/checkout@v4
14+
- run: git config --global --add safe.directory /__w/grumphp-bom-task/grumphp-bom-task
15+
- run: COMPOSER_ROOT_VERSION=dev-main composer install --no-progress --no-scripts -n --ignore-platform-req=php+
1716
- run: ./vendor/bin/grumphp run

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"issues": "https://github.com/pluswerk/grumphp-bom-task/issues"
1515
},
1616
"require": {
17-
"php": "~8.1.0 || ~8.2.0",
17+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
1818
"phpro/grumphp": "^2.0.0"
1919
},
2020
"require-dev": {
@@ -30,9 +30,9 @@
3030
],
3131
"config": {
3232
"allow-plugins": {
33+
"ergebnis/composer-normalize": true,
3334
"phpro/grumphp": true,
3435
"phpstan/extension-installer": true,
35-
"ergebnis/composer-normalize": true,
3636
"pluswerk/grumphp-config": true
3737
}
3838
},

src/BomFixerTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private function isFileWithBOM(string $filename): bool
9999
private function fileInfoSearch(string $filename, string $search): bool
100100
{
101101
$output = [];
102-
exec('file ' . '"' . $filename . '"', $output, $returnVar);
102+
exec('file "' . $filename . '"', $output, $returnVar);
103103
if ($returnVar !== 0) {
104104
return false;
105105
}

0 commit comments

Comments
 (0)