dynamicConstantNames parameter #4226
-
Hi, I have this code, but I'm not able to make it valid for PHPStan (testing with 0.12.59) I tried using parameters:
level: 8
dynamicConstantNames:
# - DefaultConfig::AAA
# - \DefaultConfig::AAA
# - DefaultConfig::*
# - \DefaultConfig::*
- Config::AAA
# - \Config::AAA
# - Config::*
# - \Config::*
# - AAA Commented lines are just list what I tried to do. What am I doing wrong, that PHPStan is not respecting PHPDoc and it's optional null? Thanks for response in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yeah, PHPStan currently will generalize the type from |
Beta Was this translation helpful? Give feedback.
Yeah, PHPStan currently will generalize the type from
'aaa'
tostring
, but it will not addnull
there...