Skip to content

Commit

Permalink
phpstan rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Nov 22, 2024
1 parent 2047a50 commit 9f26b9c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"friendsofphp/php-cs-fixer": "^3.0",
"kimai/kimai": "dev-main",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-doctrine": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpstan/phpstan-symfony": "^2.0"
Expand Down
33 changes: 17 additions & 16 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
includes:
- %rootDir%/../phpstan-symfony/extension.neon
- %rootDir%/../phpstan-symfony/rules.neon
- %rootDir%/../phpstan-doctrine/extension.neon
- %rootDir%/../phpstan-doctrine/rules.neon
- %rootDir%/../phpstan-strict-rules/rules.neon
- %rootDir%/../phpstan/conf/bleedingEdge.neon
- %rootDir%/../phpstan-symfony/extension.neon
- %rootDir%/../phpstan-symfony/rules.neon
- %rootDir%/../phpstan-doctrine/extension.neon
- %rootDir%/../phpstan-doctrine/rules.neon
- %rootDir%/../phpstan-deprecation-rules/rules.neon
- %rootDir%/../phpstan-strict-rules/rules.neon
- %rootDir%/../phpstan/conf/bleedingEdge.neon

parameters:
level: 7
excludePaths:
- vendor/(?)
- tests/(?)
scanDirectories:
- Migrations/
treatPhpDocTypesAsCertain: false
inferPrivatePropertyTypeFromConstructor: true
doctrine:
allowNullablePropertyForRequiredField: true
level: 7
excludePaths:
- vendor/(?)
- tests/(?)
scanDirectories:
- Migrations/
treatPhpDocTypesAsCertain: false
inferPrivatePropertyTypeFromConstructor: true
doctrine:
allowNullablePropertyForRequiredField: true

0 comments on commit 9f26b9c

Please sign in to comment.