Open atymic opened 6 months ago
Okay, digging deeper it seems like somehow NeverType
is a subtype of my class according to the AST?
I unfortunately don't think I have enough knowledge in this area to debug haha.
Can you try if https://github.com/BenSampo/laravel-enum/issues/355 fixes the issue?
For some reason the rector rule is catching random bits of unrelated code, for example the below sample. It seems to be a bit random, will attempt to debug further to figure out why, by have narrowed it down to
\BenSampo\Enum\Rector\ToNativeRector::inConfiguredClasses
returningtrue
when it should not.