Re: Bug #80248 - Swapping parameter names during inheritance does not throw

From: Date: Mon, 26 Oct 2020 14:36:52 +0000
Subject: Re: Bug #80248 - Swapping parameter names during inheritance does not throw
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-112125@lists.php.net to get a copy of this message
On 26/10/2020 13:12, Michael Voříšek - ČVUT FEL wrote:
I am writing regarding bug 80248. Currently, PHP 8 allows parameter reuse at different position, which I belive is very dangerous, as passed parameters may be passed in a different order with different object impl.
Hi Michael, Yes, this was one of the most discussed aspects of named parameters. There were a few proposals for how it should work, but in the end none of them gained consensus, and Nikita decided to keep things simple. I suggest having a look at the RFC [https://wiki.php.net/rfc/named_params] and its main discussion thread [https://externals.io/message/110004] to see the pros and cons of various alternatives. Since none of these were adopted in the proposal, it's not clear that this could be considered a bug, rather than a feature change, so there'd need to be a very strong justification for re-visiting it this close to 8.0 availability. Regards, -- Rowan Tommins (né Collins) [IMSoP]

« previous php.internals (#112125) next »