<?php
interface AInterface {
public function getA();
}
interface BInterface extends AInterface {
public function getA($foo = FALSE);
}
class A implements AInterface {
public function getA() {
return 'meh';
}
}
class B implements BInterface {
public function getA($foo = FALSE) {
return $foo;
}
}
$b = new B();
$a = new A();
print $a->getA();
print $b->getA();
Fatal error: Can't inherit abstract function AInterface::getA() (previously declared abstract in BInterface) in /in/DJVbd on line 7
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING in /in/DJVbd on line 3
Process exited with code 255.