Re: [RFC] Consistent type errors for internal functions

From: Date: Tue, 05 Feb 2019 12:23:20 +0000
Subject: Re: [RFC] Consistent type errors for internal functions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-104177@lists.php.net to get a copy of this message
On Tue, 5 Feb 2019 at 12:22, Nikita Popov <nikita.ppv@gmail.com> wrote: > Hi internals, > > I'd like to bring forward the following proposal for PHP 8, which will make > (zpp) parameter parsing failures always result in a TypeError (rather than > generating a warning+null, depending on circumstances): > > https://wiki.php.net/rfc/consistent_type_errors > > The goal here is to remove one of the inconsistencies between user-defined > and internal functions, and to put us in a position where we can actually > start specifying type information in arginfo without fear of breaking > things. > > Regards, > Nikita > I'm all for it but what is the scope of the RFC? Is it all core functions, bundled extension functions, or all extension functions? Also does this means that there will be argument type hinting in core functions that could be found out via reflection? Best regards George P. Banyard

« previous php.internals (#104177) next »