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

Adding/Removing a class supertype

tomzx opened this issue · comments

In the event that a class supertype (class MyClass extends SuperType) is removed (class MyClass), if all methods available in SuperType have been duplicated to MyClass, then the code can be considered exactly the same (thus a PATCH). If not all the methods are duplicated, then method loss occurs.

To support this, we would be unable to simply scan the files that do not match and would have to do a complete scan of the source code in order to establish class hierarchies. Furthermore, this would mean that in the event that some supertypes are not available, we may only be able to do a partial analysis.