[RFC] $this return type

From: Date: Tue, 07 Sep 2021 10:28:32 +0000
Subject: [RFC] $this return type
Groups: php.internals 
Request: Send a blank email to internals+get-115986@lists.php.net to get a copy of this message
Hi internals, I'd like to pick up a loose thread from the future scope of the https://wiki.php.net/rfc/static_return_type RFC, the $this return type for fluent APIs: https://wiki.php.net/rfc/this_return_type I have some reservations about this (which basically come down to $this not being a proper "type", so should it be in the type system?) but I can see the practical usefulness, so I think it's worth discussing this. Regards, Nikita

« previous php.internals (#115986) next »