RE: [PHP-DEV] [RFC] Nullable intersection types

From: Date: Tue, 27 Jul 2021 22:51:35 +0000
Subject: RE: [PHP-DEV] [RFC] Nullable intersection types
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-115596@lists.php.net to get a copy of this message
On 27 July 2021 21:29:47 BST, "André Hänsel" <andre@webkr.de> wrote: >> In fact, when 7.1 was released, none of the signatures changed in my >code, they were just >> updated to a different syntax. > >That by the way is only because of a specific compatibility behavior >which is so confusing >that I erroneously reported it as a bug: >https://bugs.php.net/bug.php?id=80948 I can see how it would be confusing if you're coming to PHP fresh in the last few years, but from version 5.1 though to version 7.0, that was the way you marked nullable parameter types. It's a "compatibility behavior" only in the sense that it wasn't immediately removed when the more flexible "?type" syntax was added in 7.1. Regards, -- Rowan Tommins [IMSoP]

« previous php.internals (#115596) next »