tomzx / php-semver-checker

Compares two source sets and determines the appropriate semantic versioning to apply.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mark classes, classes methods, functions, traits and interfaces as PATCH when their casing is changed

tomzx opened this issue · comments

Currently we've assumed that classes, classes methods, functions, traits and interfaces are case sensitive, which means that if a given class is renamed from a to A, then we removed the class a (MAJOR V005) and added the class A (MINOR V014).

However they are considered by PHP as case insensitive, meaning that both class a and A are effectively the same. If such renaming occurs in code, it should only trigger a PATCH level and the MAJOR+MINOR levels as explained above.

Fixed by #99.