1234567891011121314151617181920212223 |
- --TEST--
- Bug #80126: Covariant return types failing compilation
- --FILE--
- <?php
- interface I {
- public function method(): I;
- }
- abstract class A implements I {
- public function method(): I { }
- }
- class C extends A { }
- class C2 extends C {
- public function method(): C2 { }
- }
- ?>
- ===DONE===
- --EXPECT--
- ===DONE===
|