Re: Re: [RFC] [PRE-VOTE] Union types
| From: | Bob Weinand | Date: | Thu, 02 Jun 2016 19:13:23 +0000 |
| Subject: | Re: Re: [RFC] [PRE-VOTE] Union types | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-93730@lists.php.net to get a copy of this message | ||
> Am 02.06.2016 um 20:53 schrieb Fleshgrinder <php@fleshgrinder.com>:
>
> On 6/2/2016 8:45 PM, Bob Weinand wrote:
>> Done that, does it look better now? :-)
>>
>
> Absolutely in my opinion, looks much simpler now. :)
>
>> only if actually numeric, the result of $str + 0
>
> Shouldn't we use is_numeric_string() here?
That's the internal function responsible for the conversion.
Bob
> --
> Richard "Fleshgrinder" Fussenegger
>