From 7a5e98965a8f8bbe7d5b9c1a4be146900f5e5e02 Mon Sep 17 00:00:00 2001 From: DerManoMann Date: Thu, 11 Dec 2025 22:17:55 +1300 Subject: [PATCH] Add `NoDynamicNameRule` --- composer.json | 3 ++- phpstan.neon | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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