diff --git a/.github/workflows/run-grumphp-test.yml b/.github/workflows/run-grumphp-test.yml index ac91e76..1daf90b 100644 --- a/.github/workflows/run-grumphp-test.yml +++ b/.github/workflows/run-grumphp-test.yml @@ -6,12 +6,11 @@ jobs: strategy: fail-fast: false matrix: - php: - - '8.1' - - '8.2' + php: ['8.1', '8.2', '8.3-rc'] container: image: kanti/buildy:${{ matrix.php }} steps: - - uses: actions/checkout@v2 - - run: COMPOSER_ROOT_VERSION=dev-main composer install --no-progress --no-scripts -n + - uses: actions/checkout@v4 + - run: git config --global --add safe.directory /__w/grumphp-bom-task/grumphp-bom-task + - run: COMPOSER_ROOT_VERSION=dev-main composer install --no-progress --no-scripts -n --ignore-platform-req=php+ - run: ./vendor/bin/grumphp run diff --git a/composer.json b/composer.json index 0beb1c5..31f836b 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "issues": "https://github.com/pluswerk/grumphp-bom-task/issues" }, "require": { - "php": "~8.1.0 || ~8.2.0", + "php": "~8.1.0 || ~8.2.0 || ~8.3.0", "phpro/grumphp": "^2.0.0" }, "require-dev": { @@ -30,9 +30,9 @@ ], "config": { "allow-plugins": { + "ergebnis/composer-normalize": true, "phpro/grumphp": true, "phpstan/extension-installer": true, - "ergebnis/composer-normalize": true, "pluswerk/grumphp-config": true } }, diff --git a/src/BomFixerTask.php b/src/BomFixerTask.php index dad070f..794df1f 100644 --- a/src/BomFixerTask.php +++ b/src/BomFixerTask.php @@ -99,7 +99,7 @@ private function isFileWithBOM(string $filename): bool private function fileInfoSearch(string $filename, string $search): bool { $output = []; - exec('file ' . '"' . $filename . '"', $output, $returnVar); + exec('file "' . $filename . '"', $output, $returnVar); if ($returnVar !== 0) { return false; }