File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed
Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 99 - 3.x
1010
1111jobs :
12- run :
12+ tests :
1313 runs-on : ubuntu-latest
1414 strategy :
1515 fail-fast : false
5656 - name : Run PHPUnit tests
5757 run : |
5858 ./vendor/bin/simple-phpunit
59+
60+ phpstan :
61+ runs-on : ubuntu-latest
62+ name : PHPStan
63+ steps :
64+ - name : Checkout
65+ uses : actions/checkout@v4
66+
67+ - name : Setup PHP
68+ uses : shivammathur/setup-php@v2
69+ with :
70+ php-version : ' 8.4'
71+
72+ - name : Install dependencies
73+ run : composer update
74+
75+ - name : Run analysis
76+ run : ./vendor/bin/phpstan
Original file line number Diff line number Diff line change 5050 },
5151 "require-dev" : {
5252 "doctrine/doctrine-bundle" : " ^1.3 || ^2" ,
53+ "doctrine/orm" : " ^2.6.3 || ^3" ,
5354 "friendsofphp/php-cs-fixer" : " ^3.0.2, !=3.5.0" ,
55+ "phpstan/phpstan" : " ^2.1" ,
56+ "phpstan/phpstan-phpunit" : " ^2.0" ,
57+ "phpstan/phpstan-symfony" : " ^2.0" ,
5458 "symfony/console" : " ^6.4 || ^7.0" ,
5559 "symfony/mailer" : " ^6.4 || ^7.0" ,
5660 "symfony/mime" : " ^6.4 || ^7.0" ,
Original file line number Diff line number Diff line change 1+ parameters :
2+ level : 8
3+ inferPrivatePropertyTypeFromConstructor : true
4+ treatPhpDocTypesAsCertain : false
5+ paths :
6+ - src/
7+ - tests/
8+ ignoreErrors :
9+ - '~Method FOS\\UserBundle\\Tests\\[\w\\ ]+Test::test\w+\ (\ ) has no return type specified.~'
10+
11+ includes :
12+ - vendor/phpstan/phpstan-phpunit/extension.neon
13+ - vendor/phpstan/phpstan-phpunit/rules.neon
14+ - vendor/phpstan/phpstan-symfony/extension.neon
15+ - vendor/phpstan/phpstan-symfony/rules.neon
You can’t perform that action at this time.
0 commit comments