Re: [VOTE] Interface Default Methods

From: Date: Tue, 11 Jul 2023 12:54:17 +0000
Subject: Re: [VOTE] Interface Default Methods
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-120772@lists.php.net to get a copy of this message
> > 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.

« previous php.internals (#120772) next »