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

From: Date: Wed, 15 Jun 2016 21:23:00 +0000
Subject: Re: [RFC] [VOTE] Replace "Missing argument" warning with "Too few arguments" exception
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-94028@lists.php.net to get a copy of this message
Le 06/06/2016 09:22, Dmitry Stogov a écrit :
You can find the full RFC at: https://wiki.php.net/rfc/too_few_args I encourage everyone to read the RFC and cast your vote towards whichever option you feel is the best for the language and the community.
Hi, At AFUP, we would be -1 for this RFC for PHP 7.1, as it causes a bc-break without bringing much (speaking about "features") in return. Yes, it highlights (brightly) a situation in which there is probably a bug; but we think it changes behavior quite too brutally for a minor version. On the other hand, we would be +1 for this in PHP 8.0, as this would help detect/catch bugs and it is "more OK" to break BC in a major version. (I realize I'm basically repeating what others said in this very thread and/or in the one about bc-breaks in minor versions, but I'm posting anyway: one additional opinion cannot hurt, I hope) In any case, thanks for your work on this! -- Pascal MARTIN, AFUP - French UG http://php-internals.afup.org/

« previous php.internals (#94028) next »