Re: [RFC] Improve language coherence for the behaviour of offsets and containers

From: Date: Sun, 07 Jul 2024 23:02:08 +0000
Subject: Re: [RFC] Improve language coherence for the behaviour of offsets and containers
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Sunday, 7 July 2024 at 22:01, Nicolas Grekas <[email protected]> wrote:

> I don't see any mention of Stringable objects in the RFC. Can you please describe how they
> behave when used as string indexes, and if you're proposing any changes for them

Hello Nicolas,

All objects behave the same for string offset, i.e. they are invalid and will throw an Error.
This is described in the "Invalid offsets" subsection of the "Strings" section.
[1]
And I am not proposing any changes to them.

Best regards,
Gina P. Banyard

[1] https://github.com/Girgias/php-rfcs/blob/master/container-offset-behaviour.md#invalid-offsets-1

>>


Thread (15 messages)

« previous php.internals (#124265) next »