diff --git a/composer.json b/composer.json index e005a22c4..1aa0ef879 100644 --- a/composer.json +++ b/composer.json @@ -75,7 +75,8 @@ "friendsofphp/php-cs-fixer": "^3.62.0", "phpstan/phpstan": "^2.0", "phpunit/phpunit": "^11.5", - "rector/rector": "^2.3.1" + "rector/rector": "^2.3.1", + "symplify/phpstan-rules": "^14.9" }, "conflict": { "symfony/process": ">=6, <6.4.14" diff --git a/phpstan.neon b/phpstan.neon index 37aaf9eaa..dd509ea72 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,6 +1,11 @@ includes: - phpstan-baseline.neon +services: + - Symplify\PHPStanRules\TypeAnalyzer\CallableTypeAnalyzer +rules: + - Symplify\PHPStanRules\Rules\NoDynamicNameRule + parameters: phpVersion: 80200 level: 5