> > a Trait was modified, what gets impacted? Is this not already the case for all tightly coupled code? This RFC proposes to make the least-coupled code in PHP more coupled, so soon, you'll be able to say the same for interfaces (if this passes).
I don't understand this RFC. Symfony is a mess in that a class requires an interface, even if there is only one implementation. PHP shouldn't fix that, Symfony should rethink how they're doing inheritance. Abstract classes solve this problem perfectly. It's part of the type system, it's type-hintable, it's mockable, and it's pretty easy to see what inherits it as people who inherit it already know what the base behavior was when they wrote the code. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php