- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.21, 5.5.0 - 5.5.5
- Fatal error: Class B contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (A::g) in /in/d97NA on line 12
Process exited with code 255.
<?php
abstract class A
{
public abstract function g();
public static function f(){ echo 'f'; }
}
class B extends A
{
public static function f(){ echo 'B::f'; }
}