- Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17, 7.0.0 - 7.0.2
- Fatal error: Non-abstract method Test::abstractMethod() must contain body in /in/95L67 on line 5
Process exited with code 255.
<?php
abstract class Test
{
public static function abstractMethod();
}
class Child extends Test
{
public static function abstractMethod()
{
return 'testString';
}
}
echo Child::abstractMethod();