<?php
abstract class ParentClass
{
abstract public function doSomething(string $foo);
}
class ChildClass extends ParentClass
{
public function doSomething($foo) {}
}
Fatal error: Declaration of ChildClass::doSomething($foo) must be compatible with ParentClass::doSomething(string $foo) in /in/LGNYb on line 11
Process exited with code 255.
Fatal error: Declaration of ChildClass::doSomething() must be compatible with ParentClass::doSomething(string $foo) in /in/LGNYb on line 11
Process exited with code 255.
Fatal error: Declaration of ChildClass::doSomething() must be compatible with that of ParentClass::doSomething() in /in/LGNYb on line 11
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CLASS in /in/LGNYb on line 3
Process exited with code 255.