Re: [RFC] Mixed Typehint
| From: | Sebastian Bergmann | Date: | Wed, 20 Dec 2017 12:56:30 +0000 |
| Subject: | Re: [RFC] Mixed Typehint | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101402@lists.php.net to get a copy of this message | ||
On 12/19/2017 04:34 AM, Michael Moravec wrote:
I'd like to propose and discuss Mixed Typehint RFC for PHP 7.3: https://wiki.php.net/rfc/mixed-typehint"mixed" is too unspecific. I understand the reasoning behind wanting "mixed": to express explicitly that a type declaration was not forgotten. I think that a "scalar" type that "groups together" bool, float, int, and string would make more sense. This would allow the expression that something is not an array, not an object, and not a resource.