Re: Make Closure covariant to callable
| From: | Niels Dossche | Date: | Tue, 12 Nov 2024 19:13:40 +0000 |
| Subject: | Re: Make Closure covariant to callable | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-125946@lists.php.net to get a copy of this message | ||
On 12/11/2024 14:53, Gina P. Banyard wrote:
> Hello internals,
>
> Ondřej Mirtes (author of PHPStan) remarked to me in August that Closure is not a subtype of
> callable.
> The implementation of this is quite straight forward and can be seen on GitHub. [1]
> The question is if there are any concern or not and if this requires an RFC or can just be
> merged as is.
>
> Best regards,
>
> Gina P. Banyard
>
> [1] https://github.com/php/php-src/pull/15492
Hi Gina
Makes sense to me.
Kind regards
Niels