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
It is completely valid to mix traits in PHP that have the same methods declared, as long as only one of them is concrete (all the others must be abstract).
pdepend does not allow this however. If you try to setup this scenario:
It is completely valid to mix traits in PHP that have the same methods declared, as long as only one of them is concrete (all the others must be abstract).
pdepend does not allow this however. If you try to setup this scenario:
pdepend's Inheritance-Analyzer complains that:
Trait method foo has not been applied, because there are collisions with other trait methods on \global\ClassTwo.
The text was updated successfully, but these errors were encountered: