Re: Return type declaration and &return.falseforfailure;

From: Date: Sun, 11 Feb 2018 23:15:34 +0000
Subject: Re: Return type declaration and &return.falseforfailure;
References: 1 2 3 4 5  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969386885@lists.php.net to get a copy of this message
On 11.02.2018 at 23:56, Richard Quadling wrote: > We should be adding <void> if there is no return value. If a function can > return null, then that's a valid return type. […] Most functions return NULL, if you give them invalid parameter types, e.g. <https://3v4l.org/UIYGh>. > […] The issue here is that many > of the PHP functions return way too many types. ACK. However, changing that constitutes a BC break, and as such has to be thoroughly investigated (likely on a case by case basis), and most likely would require the RFC process (<https://wiki.php.net/rfc/howto>). -- Christoph M. Becker

« previous php.doc (#969386885) next »