Skip to content

Commit 47d0e36

Browse files
committed
phpstan
1 parent 3cc17a7 commit 47d0e36

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
"friendsofphp/php-cs-fixer": "^3.0",
5555
"kimai/kimai": "dev-main",
5656
"phpstan/phpstan": "^2.0",
57+
"phpstan/phpstan-deprecation-rules": "^2.0",
58+
"phpstan/phpstan-doctrine": "^2.0",
59+
"phpstan/phpstan-strict-rules": "^2.0",
5760
"phpstan/phpstan-symfony": "^2.0",
5861
"symfony/console": "^6.0",
5962
"symfony/event-dispatcher": "^6.0"

phpstan.neon

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
includes:
2-
- %rootDir%/../phpstan-symfony/extension.neon
3-
- %rootDir%/../phpstan-symfony/rules.neon
2+
- %rootDir%/../phpstan-symfony/extension.neon
3+
- %rootDir%/../phpstan-symfony/rules.neon
4+
- %rootDir%/../phpstan-doctrine/extension.neon
5+
- %rootDir%/../phpstan-doctrine/rules.neon
6+
- %rootDir%/../phpstan-deprecation-rules/rules.neon
7+
- %rootDir%/../phpstan-strict-rules/rules.neon
8+
- %rootDir%/../phpstan/conf/bleedingEdge.neon
49

510
parameters:
6-
level: 9
7-
excludePaths:
8-
- vendor/(?)
9-
treatPhpDocTypesAsCertain: false
10-
inferPrivatePropertyTypeFromConstructor: true
11+
level: 9
12+
excludePaths:
13+
- vendor/(?)
14+
treatPhpDocTypesAsCertain: false
15+
inferPrivatePropertyTypeFromConstructor: true
16+
doctrine:
17+
allowNullablePropertyForRequiredField: true

0 commit comments

Comments
 (0)