Skip to content

Commit f8c84c3

Browse files
Run phpstan on example
1 parent 148413f commit f8c84c3

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-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
@@ -29,11 +29,19 @@
2929
"symfony/process": "^6.4|^7.0",
3030
"symfony/var-dumper": "^6.4|^7.0"
3131
},
32+
"require-dev": {
33+
"phpstan/phpstan": "^2.1"
34+
},
3235
"autoload": {
3336
"psr-4": {
3437
"Symfony\\AI\\Fixtures\\": "../fixtures/"
3538
}
3639
},
40+
"autoload-dev": {
41+
"psr-4": {
42+
"Symfony\\AI\\PHPStan\\": "../.phpstan/"
43+
}
44+
},
3745
"config": {
3846
"allow-plugins": {
3947
"codewithkyrian/platform-package-installer": true,

examples/phpstan.dist.neon

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

0 commit comments

Comments
 (0)