Re: Typed properties problems
| From: | Stanislav Malyshev | Date: | Tue, 17 Jan 2017 21:56:05 +0000 |
| Subject: | Re: Typed properties problems | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-97838@lists.php.net to get a copy of this message | ||
Hi!
>> That's pretty messed-up right there. At least in the object cases there's
>> an E_WARNING "Creating default object from empty value" - with the array
>> case, nothing, it just converts your boolean into an array. Yiiiiikes.
This works only on "empty" values, btw - null, false and "". And it
doesn't really "convert" anything - no more than reassigning variable
converts anything - it just drops the "empty" value and replaces it with
an array.
--
Stas Malyshev
smalyshev@gmail.com