Re: Allow default parameters before non-default ones?

From: Date: Thu, 09 Dec 2021 21:07:37 +0000
Subject: Re: Allow default parameters before non-default ones?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-116612@lists.php.net to get a copy of this message
On 09/12/2021 12:45, Christoph M. Becker wrote:
The new behavior has been introduced[1] quite a while after this mail had been sent. I agree with the idea outlined in the commit message. I suggest to document that in the migration guide, and in the manual proper.
Good spot. I guess it does make sense to treat this as an accident in 8.0, rather than a feature that was added and then immediately removed. I've raised a PR to add this to the Migration Guide, and update the general description of optional parameters: https://github.com/php/doc-en/pull/1191 For some reason, the CI build failed on that PR, but on unrelated files, so I'm not sure if it's my fault or not. Regards, -- Rowan Tommins [IMSoP]

Thread (10 messages)

« previous php.internals (#116612) next »