Re: [RFC] Replace "Missing argument" warning with "Too few arguments" exception

From: Date: Wed, 01 Jun 2016 18:36:10 +0000
Subject: Re: [RFC] Replace "Missing argument" warning with "Too few arguments" exception
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-93688@lists.php.net to get a copy of this message
> > On Jun 1, 2016, at 5:55 AM, Dmitry Stogov <dmitry@zend.com> wrote: > > hi, > > > Please take a look into the proposal. > > > https://wiki.php.net/rfc/too_few_args > > > The RFC is extremely simple (both proposal and implementation) and almost completely described > by the email subject. > > I think, this mini-RFC doesn't need 2-weeks discussion period, so I'm going to start > the vote on next week. > > > Thanks. Dmitry. +1 on this change. IMO, this is one of the few remaining unusual PHP behaviors that exists for no obvious reason. A function should not be called if too few arguments are provided. While this might be considered a BC break, I can't imagine there's an actual code out there relying on suppressing the warning just to call a function without enough arguments. I see no problem putting this change in 7.1. Aaron Piotrowski

« previous php.internals (#93688) next »