Skip to content

Commit d715af5

Browse files
committed
Update PHP to 7.4, upgrade phpstan level from 1 to 3.
1 parent 9b384da commit d715af5

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^7.2.9 || ^8.0",
23+
"php": "^7.4 || ^8.0",
2424
"doctrine/orm": "~2.5|^3.0",
2525
"doctrine/doctrine-bundle": "^1.0|^2.0",
2626
"symfony/config": "^4.0|^5.0",
@@ -50,7 +50,7 @@
5050
"scripts": {
5151
"analyse": [
5252
"@php vendor/bin/ecs check src",
53-
"@php vendor/bin/phpstan analyse src -l 1"
53+
"@php vendor/bin/phpstan analyse"
5454
]
5555
},
5656
"extra": {

phpstan.neon

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
parameters:
2+
level: 3
3+
paths:
4+
- src
5+
ignoreErrors:
6+
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface::arrayNode\(\).#'
7+
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::addDefaultsIfNotSet\(\).#'
8+
checkGenericClassInNonGenericObjectType: false
9+
checkMissingIterableValueType: false

0 commit comments

Comments
 (0)