You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System / Distribution & Version: Debian 11 (php docker image)
Current Behavior
When a class both (1) uses two or more traits that they themselves use one common trait, and (2) extends some other class, phpmd is unable to proceed with the message Trait method (xxx) has not been applied, because there are collisions with other trait methods on (yyy).
Expected Behavior
This behavior is valid, and so phpmd should proceed without any problems.
Current Behavior
When a class both (1) uses two or more traits that they themselves use one common trait, and (2) extends some other class, phpmd is unable to proceed with the message
Trait method (xxx) has not been applied, because there are collisions with other trait methods on (yyy).
Expected Behavior
This behavior is valid, and so phpmd should proceed without any problems.
Steps To Reproduce:
Create a file:
Run phpmd on it, and get the error
Trait method foo has not been applied, because there are collisions with other trait methods on \global\Concrete.
.Note that if either the line
function foo() {}
orextends Unrelated
get removed, then phpmd continues with no problems.Checks before submitting
The text was updated successfully, but these errors were encountered: