Skip to content

Commit f02da47

Browse files
committed
Add NoDynamicNameRule
1 parent 09b3543 commit f02da47

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"friendsofphp/php-cs-fixer": "^3.62.0",
7676
"phpstan/phpstan": "^2.0",
7777
"phpunit/phpunit": "^11.5",
78-
"rector/rector": "^2.3.1"
78+
"rector/rector": "^2.3.1",
79+
"symplify/phpstan-rules": "^14.9"
7980
},
8081
"conflict": {
8182
"symfony/process": ">=6, <6.4.14"

phpstan.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
includes:
22
- phpstan-baseline.neon
33

4+
services:
5+
- Symplify\PHPStanRules\TypeAnalyzer\CallableTypeAnalyzer
6+
rules:
7+
- Symplify\PHPStanRules\Rules\NoDynamicNameRule
8+
49
parameters:
510
phpVersion: 80200
611
level: 5

0 commit comments

Comments
 (0)