On Mon, Oct 27, 2025, 09:55 Rowan Tommins [IMSoP] <[email protected]> wrote:
> Hi Alexandre, > > On 27/10/2025 08:03, Alexandre Daubois wrote: > > Thank you for your interest! I get your concerns about the extension > of such syntax, but we don't feel that there would be a particular > need of extending this syntax. The syntax does not bring something > really new: the behavior described in the RFC already exists in PHP — > we are just making it available at the cast level with explicit null > handling. > > > I definitely agree that reusing the behaviour from the existing scalar > parameter/return checks makes a lot of sense. I also agree that allowing > nullable types as the target of the cast is a useful feature. > > What I'm not convinced by is that those two features should be combined > into one: > > $foo = '123abc'; > Why not create a separate RFC to deprecate and remove(9.0) this and others strange cast behaviors. Then after it finishes decide how to processed with this one? There no need to rush, php 8.6 will be released only next year
