Skip to content

Commit 134a6e9

Browse files
committed
Run PHPCS on the target PHP version
1 parent a22c981 commit 134a6e9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/continuous_integration.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ jobs:
7575
run: "composer phpstan"
7676

7777
- name: "Run coding standard checks with squizlabs/php_codesniffer"
78-
run: "composer cs-check"
78+
run: |
79+
php_version=$(php -r 'echo PHP_MAJOR_VERSION * 10000 + PHP_MINOR_VERSION * 100 + PHP_RELEASE_VERSION;')
80+
echo "Detected PHP version: $php_version"
81+
phpcs --runtime-set php_version $php_version
7982
8083
- name: "Archive code coverage results"
8184
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)