Skip to content

Commit c146113

Browse files
committed
Merge branch '1.x' into 2.x
* 1.x: Fix PHP Parse errors in tests.
2 parents 11d923a + 1aabc8e commit c146113

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ci.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,19 @@ jobs:
3333
- name: "Checkout code"
3434
uses: actions/checkout@v4
3535

36-
- name: "Install PHP with extensions"
36+
- name: "Install PHP"
3737
uses: shivammathur/setup-php@v2
3838
with:
3939
coverage: "none"
4040
php-version: ${{ matrix.php }}
4141
tools: composer:${{ matrix.composer }}
4242

43+
- if: matrix.php == '8.0'
44+
name: "Lint PHP files"
45+
run: |
46+
find src/ -name '*.php' | xargs -n1 php -l
47+
find tests/ -name '*.php' | xargs -n1 php -l
48+
4349
- name: "Validate composer.json"
4450
run: "composer validate --strict --no-check-lock"
4551

@@ -55,7 +61,3 @@ jobs:
5561
run: vendor/bin/simple-phpunit install
5662

5763
- run: vendor/bin/simple-phpunit
58-
59-
- if: matrix.php == '8.0'
60-
name: "Lint PHP files"
61-
run: find src/ -name '*.php' | xargs -n1 php -l

0 commit comments

Comments
 (0)