<?php
interface SomeInterface
{
public function getValue();
}
abstract class SomeAbstractClass implements SomeInterface
{
abstract public function getValue();
}
class SomeConcreteClass extends SomeAbstractClass
{
public function getValue()
{
return 5;
}
}
$concrete = new SomeConcreteClass();
echo $concrete->getValue();
Fatal error: Can't inherit abstract function SomeInterface::getValue() (previously declared abstract in SomeAbstractClass) in /in/GYEel on line 9
Process exited with code 255.
Fatal error: Can't inherit abstract function SomeInterface::getValue() (previously declared abstract in SomeAbstractClass) in /in/GYEel on line 8
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING in /in/GYEel on line 3
Process exited with code 255.