<?hh // strict
interface Foo {
public function foo(String $foo) : String;
}
class Bar implements Foo {
public function foo(String $foo) {
return new StdClass;
}
}
$b = new Bar;
var_dump($b->foo("test"));
<?hh // strict
interface Foo {
public function foo(String $foo) : String;
}
class Bar implements Foo {
public function foo(String $foo) {
return new StdClass;
}
}
$b = new Bar;
var_dump($b->foo("test"));
Output for 8.0.13
Parse error: syntax error, unexpected token "interface" in /in/O4SQV on line 3
Process exited with code 255.