> Ah, I see now what you meant, Robert. This already doesn't hold.
>
> class Foo {
> public int $prop;
> }
> $foo = new Foo();
> $value = '42';
> $foo->prop = $value;
> var_dump($value === $foo->prop);
> // false
I don’t know if this has been closed or discussed further in private but this
ha
On Fri, Mar 31, 2023 at 3:24 PM Larry Garfield wrote:
>> In other words, will it be possible for this to no longer be true (I'm
>> not sure it is always true now, fwiw):
>>
>> $x = $y = $z = 1;
>>
>> $x === $y && $y === $z;
> That would mean the following as a side effect:
>
> $f = new Foo();
> $v
Thanks for your response Ilija and Larry,
I totally missed the draft status and you resolved my burning
questions anyway! It's a pretty exciting language feature (IMHO) and I
wish you the best of luck!
Cheers,
Robert Landers
Software Engineer
Utrecht NL
--
PHP Internals - PHP Runtime Developme
On Fri, Mar 31, 2023, at 8:56 AM, Robert Landers wrote:
> Hello,
>
> I couldn't find the thread about Property Hooks
> (https://wiki.php.net/rfc/property-hooks) -- I think it got embedded
> in various places? Or maybe my search-fu in gmail is failing me.
>
> Anyway, I was reading it carefully and I
On Fri, 31 Mar 2023 at 09:57, Robert Landers
wrote:
> Hello,
>
> I couldn't find the thread about Property Hooks
> (https://wiki.php.net/rfc/property-hooks) -- I think it got embedded
> in various places? Or maybe my search-fu in gmail is failing me.
>
The RFC is in "Draft" status rather than "