- Output for 7.0.0 - 7.0.16, 7.1.0 - 7.1.2
- Fatal error: Can't inherit abstract function A::xxx() (previously declared abstract in B) in /in/XFgHP on line 11
Process exited with code 255.
<?php
abstract class A{
abstract function xxx(); //: mixed
/** other stuff */
}
abstract class B extends A{
abstract function xxx(): stdClass;
/** other stuff */
}
class C extends B{
abstract function xxx(): stdClass{
return new stdClass();
}
}