Skip to content

Commit 7d81897

Browse files
Run phpstan on example
1 parent 7b9e334 commit 7d81897

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.github/workflows/code-quality.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,7 @@ jobs:
6565
source .github/workflows/.utils.sh
6666
6767
echo "$PACKAGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/{} && $COMPOSER_UP && $PHPSTAN)'"
68+
69+
- name: Run PHPStan on examples
70+
run: |
71+
cd examples/ && $COMPOSER_UP && $PHPSTAN

examples/composer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,19 @@
3030
"symfony/process": "^6.4 || ^7.0",
3131
"symfony/var-dumper": "^6.4 || ^7.0"
3232
},
33+
"require-dev": {
34+
"phpstan/phpstan": "^2.1"
35+
},
3336
"autoload": {
3437
"psr-4": {
3538
"Symfony\\AI\\Fixtures\\": "../fixtures/"
3639
}
3740
},
41+
"autoload-dev": {
42+
"psr-4": {
43+
"Symfony\\AI\\PHPStan\\": "../.phpstan/"
44+
}
45+
},
3846
"config": {
3947
"allow-plugins": {
4048
"codewithkyrian/platform-package-installer": true,

examples/phpstan.dist.neon

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
includes:
2+
- ../.phpstan/extension.neon
3+
4+
parameters:
5+
level: 6
6+
paths:
7+
- ./
8+
excludePaths:
9+
- vendor

0 commit comments

Comments
 (0)