<?php
interface MyInterface {
public function setParent(self $parent = null);
}
class Foo implements MyInterface {
public function setParent(MyInterface $parent = null) {}
}
Fatal error: Declaration of Foo::setParent() must be compatible with MyInterface::setParent(self $parent = NULL) in /in/fPDhJ on line 8
Process exited with code 255.
Fatal error: Declaration of Foo::setParent() must be compatible with that of MyInterface::setParent() in /in/fPDhJ 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/fPDhJ on line 4
Process exited with code 255.