RE: [PHP-DEV] Warn when declaring required parameter after optionalone

2020-01-11 Thread Olumide Samson
Should it be a warning or an error? --- Sent from Mail for Windows 10 From: Niklas Keller Sent: Saturday, January 11, 2020 2:35 PM To: Nikita Popov Cc: Bob Weinand; PHP internals Subject: Re: [PHP-DEV] Warn when declaring required parameter after optionalone Hi Nikita, while this is a rather

Re: [PHP-DEV] Warn when declaring required parameter after optionalone

2020-01-09 Thread Gert
> I could understand a warning or deprecation in a minor release, but as there's already so many engine level exceptions landing in 8.0, I think it makes sense to throw this on the pile as well to be swept up in the same pass of migrations that people do in preperation for 8.0. If this would've ge

Re: [PHP-DEV] Warn when declaring required parameter after optionalone

2020-01-09 Thread Mark Randall
On 09/01/2020 12:31, Sebastian Bergmann wrote: I would prefer erroring out over just emitting a warning. I'm in agreement with Sebastian, a compile time error is the way to go. I could understand a warning or deprecation in a minor release, but as there's already so many engine level exceptio