rectorphp/rector-doctrine

Annotation to Attribute didn't if class has different case

Closed this issue · 3 comments

Running rector noticed that annotation is not removed, it looks like because it's misspelled by case.

image

As soon as I've changed to InheritanceType, rector replaced

I think that edge case that you need to clear yourself, as annotation can be class name or generic text, eg: @required, checking @ReQUIred probably not what it should be

Right. It's that case, but PHP itself is case insensitive with class-names.

changing annotation to attribute doesn't verify if class exists, verify only same value changed, if any different case, that should be cleaned by hand.