Re: [RFC][Vote Cancellation] Return Types
| From: | Lars Strojny | Date: | Fri, 07 Nov 2014 15:52:18 +0000 |
| Subject: | Re: [RFC][Vote Cancellation] Return Types | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78845@lists.php.net to get a copy of this message | ||
Hi Levi,
thanks for doing "the right thing"[tm] and cancelling the vote to open up the discussion.
> On 07 Nov 2014, at 17:20, Levi Morrison <levim@php.net> wrote:
[...]
> If these were split into separate files and autoloaded
> the current solution would work.
>
> <?php
> class A {
> function foo(): B {}
> }
> class B extends A {
> function foo(): C {}
> }
> class C extends B {
> function foo(): C {}
> }
I could see us documenting the behaviour as an existing limitation as I would guess that it will not
be a huge issue in real life most likely anyway because of composer and PSR-1/PSR-4.
cu,
Lars