diff --git a/composer.json b/composer.json index b5b4e5d..fdf7615 100644 --- a/composer.json +++ b/composer.json @@ -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" diff --git a/phpstan.neon b/phpstan.neon index f91aff3..bce88ac 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -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