Re: [RFC] [Vote] Adding return types to internal methods

From: Date: Thu, 22 Apr 2021 10:15:37 +0000
Subject: Re: [RFC] [Vote] Adding return types to internal methods
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-114099@lists.php.net to get a copy of this message
>
> Overall, I see the change of reported ReflectionMethod#getReturnType()
> as non-problematic, and tooling around reflection would continue working as
> expected, while adding new API requires:
>

I do think it would be problematic, and a new API is a must (either the one
Nikita asked about or the current one). Let's consider a reflection-based
static analyser: in PHP 8.1, it would report the incompatible
user-land return types as a very serious issue all of a sudden, while in
fact it's not the case yet.

(now I see that Nikita answered the same)

Máté

>


Thread (13 messages)

« previous php.internals (#114099) next »