Den 2022-05-08 kl. 08:52, skrev Aleksander Machniak:
On 07.05.2022 23:11, Jordan LeDoux wrote:
What exactly would be the purpose of `?int` if this RFC was passed? To
pass
the value as null instead of 0? That's it?
Yes. No change here.
What about `int|float`? Which one would it be coerced to
On 08/05/2022 11:48, Jordan LeDoux wrote:
This is not the case with null. If you use the unset() function on a
variable for example, it will var_dump as null *and* it will pass an
is_null() check *and* it will pass a $var === null *and* it will return
false for an isset() check. Null loses these
On 07.05.22 22:59, Jordan LeDoux wrote:
I like the way you organized the different levels of support within the
feature, it's a good organizational structure for thinking about the
feature-set. Given the feedback though, I found myself a little concerned
that if I created a Level 1 proposal, it's
On Sat, May 7, 2022 at 11:53 PM Aleksander Machniak wrote:
>
> What happens if you pass FALSE to such an argument? int(0). The same
> would happen with NULL.
>
>
The thing that everyone seems to be glossing over with these coercion
examples is that in order to have any scalar value, it must be ex