- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
- Fatal error: Non-abstract method Foo::bar() must contain body in /in/BFJNj on line 5
Process exited with code 255.
<?php
// Everything you enter here will be executed by our servers. Try it!
abstract class Foo {
public static function bar();
}
class Baz extends Foo {
public static function bar() {
return 1;
}
}
var_dump(Foo::bar());