Skip to content

Commit ed7f07c

Browse files
authored
Merge pull request #11 from svnldwg/9-phpstan-symfony
#9 install phpstan-symfony
2 parents c5298f5 + 06f0003 commit ed7f07c

File tree

5 files changed

+79
-5
lines changed

5 files changed

+79
-5
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"infection/infection": "^0.20.2",
3232
"phpstan/phpstan": "0.12.68",
3333
"phpstan/phpstan-phpunit": "0.12.17",
34+
"phpstan/phpstan-symfony": "^0.12.14",
3435
"phpunit/phpunit": "^9.5",
3536
"symfony/browser-kit": "5.2.*",
3637
"symfony/maker-bundle": "^1.25"

composer.lock

Lines changed: 71 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ setup: start composer-install doctrine-migrate ##@development configure developm
6767
.PHONY: setup
6868

6969
phpstan: ##@development run phpstan
70-
$(CLI) ./vendor/bin/phpstan analyze -c dev/phpstan.neon
70+
$(CLI) ./vendor/bin/phpstan analyze -c dev/phpstan.neon --memory-limit=1G
7171
.PHONY: phpstan
7272

7373
php-cs-fixer: ##@development run php-cs-fixer

dev/phpstan.neon

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
includes:
22
- ../vendor/phpstan/phpstan-phpunit/extension.neon
33
- ../vendor/phpstan/phpstan-phpunit/rules.neon
4+
- ../vendor/phpstan/phpstan-symfony/extension.neon
45
parameters:
56
level: max
67
inferPrivatePropertyTypeFromConstructor: true
@@ -9,5 +10,5 @@ parameters:
910
paths:
1011
- %currentWorkingDirectory%/migrations/
1112
- %currentWorkingDirectory%/src/
12-
ignoreErrors:
13-
- '~Parameter #1 \$jsonRequest of method App\\Service\\ToDoSerializer::deserializeRequestInto(New|Existing)\(\) expects string, resource\|string given.~'
13+
symfony:
14+
container_xml_path: ../var/cache/dev/App_KernelDevDebugContainer.xml

symfony.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@
172172
"phpstan/phpstan-phpunit": {
173173
"version": "0.12.17"
174174
},
175+
"phpstan/phpstan-symfony": {
176+
"version": "0.12.14"
177+
},
175178
"phpunit/php-code-coverage": {
176179
"version": "9.2.5"
177180
},

0 commit comments

Comments
 (0)