It's annoying the way inheriting traits in #PHP doesn't confer parentage.
Like... if trait B
use
s trait A
which has function X()
which is re-implemented in B
, B
can't call parent::X()
; you have to alias it in the use
statement and call the alias... or else split off the functionality you want them both to have in common into a separate function, and call that from each version of X()
.
(The latter technique is kind of good, in a way, since it forces you to be more descriptive and compartmental in your functions... but then why not make class inheritance work the same way?)
#softwareGripe (albeit minor)