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 <le...@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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php