should rectorphp throw an exception when a configured rule is passed to withRules
?
#9084
Answered
by
samsonasik
prescriptionlifeline
asked this question in
Q&A
-
My code: use Rector\Config\RectorConfig;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
use Rector\Php55\Rector\FuncCall\GetCalledClassToSelfClassRector;
return RectorConfig::configure()
->withRules([
GetCalledClassToSelfClassRector::class,
StringClassNameToClassConstantRector::class,
]); StringClassNameToClassConstantRector is a ConfiguredRule and, judging from the documentation, should be called with |
Beta Was this translation helpful? Give feedback.
Answered by
samsonasik
Mar 28, 2025
Replies: 1 comment
-
No, configured rules can have default values. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
samsonasik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, configured rules can have default values.