<?php
interface Concrete {
public function foo();
}
class Bar {
}
abstract class AbsConcrete implements Concrete {
abstract public function foo();
}
class Customer extends AbsConcrete {
public function init() {
echo "init\n";
}
public function foo( Bar $me = null, Bar $lala = null ) {
echo "foo\n";
}
}
$customer = new Customer;
$customer->init();
$customer->foo( new Bar, new Bar );
Fatal error: Can't inherit abstract function Concrete::foo() (previously declared abstract in AbsConcrete) in /in/njdIE on line 9
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING in /in/njdIE on line 2
Process exited with code 255.