[RFC] Nullable and non-nullable cast operators

From: Date: Fri, 24 Oct 2025 07:07:02 +0000
Subject: [RFC] Nullable and non-nullable cast operators
Groups: php.internals 
Request: Send a blank email to internals+get-128943@lists.php.net to get a copy of this message
Hi everyone,

Nicolas Grekas and I would like to propose this new RFC to the
discussion. This proposes to introduce two new cast operators to the
language: (?type) and (!type).

Please find the details here:
https://wiki.php.net/rfc/nullable-not-nullable-cast-operator

Thanks!

— Alexandre Daubois


Thread (18 messages)

« previous php.internals (#128943) next »