Skip to content

Commit 98210ef

Browse files
committed
[Turbo] Upgrade PHPStan to ^2.1.17, rename config file
1 parent 53515c6 commit 98210ef

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

.github/workflows/code-quality.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ jobs:
3232
phpstan:
3333
name: PHPStan
3434
runs-on: ubuntu-latest
35-
strategy:
36-
fail-fast: false
37-
matrix:
38-
package: ${{ fromJson(needs.php-packages-matrix.outputs.packages) }}
3935
steps:
4036
- name: Checkout
4137
uses: actions/checkout@v4
@@ -45,6 +41,7 @@ jobs:
4541
echo COLUMNS=120 >> $GITHUB_ENV
4642
echo COMPOSER_MIN_STAB='composer config minimum-stability stable --ansi' >> $GITHUB_ENV
4743
echo COMPOSER_UP='composer update --no-progress --no-interaction --ansi' >> $GITHUB_ENV
44+
echo PHPUNIT_INSTALL='vendor/bin/simple-phpunit install' >> $GITHUB_ENV
4845
echo PHPSTAN='vendor/bin/phpstan' >> $GITHUB_ENV
4946
5047
# TODO: Only Turbo has PHPStan configuration, let's improve this later :)
@@ -69,4 +66,4 @@ jobs:
6966
run: |
7067
source .github/workflows/.utils.sh
7168
72-
echo "$PACKAGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/{} && $COMPOSER_MIN_STAB && $COMPOSER_UP && $PHPSTAN)'"
69+
echo "$PACKAGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/{} && $COMPOSER_MIN_STAB && $COMPOSER_UP && PHPUNIT_INSTALL && $PHPSTAN)'"

.github/workflows/functional-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ name: Functional Tests
33
on:
44
push:
55
paths:
6+
- '.github/workflows/functional-tests.yml'
67
- 'src/Turbo/**'
78
pull_request:
89
paths:
10+
- '.github/workflows/functional-tests.yml'
911
- 'src/Turbo/**'
1012

1113
jobs:

src/Turbo/.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/.git* export-ignore
22
/.symfony.bundle.yaml export-ignore
33
/phpunit.xml.dist export-ignore
4-
/phpstan.neon.dist export-ignore
4+
/phpstan.dist.neon export-ignore
55
/assets/src export-ignore
66
/assets/test export-ignore
77
/assets/vitest.config.js export-ignore

src/Turbo/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"require-dev": {
4141
"doctrine/doctrine-bundle": "^2.4.3",
4242
"doctrine/orm": "^2.8 | 3.0",
43-
"phpstan/phpstan": "^1.10",
43+
"phpstan/phpstan": "^2.1.17",
4444
"symfony/asset-mapper": "^6.4|^7.0",
4545
"symfony/debug-bundle": "^5.4|^6.0|^7.0",
4646
"symfony/form": "^5.4|^6.0|^7.0",
File renamed without changes.

0 commit comments

Comments
 (0)