- Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.30, 5.6.7 - 5.6.14
- Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/K0ckX on line 9
Process exited with code 255.
<?php
interface Shiter {
public function foo(Shiter $shit);
}
class Bbk implements Shiter
{
public function foo(Shiter $shit): Shiter
}
$bbk = new Bbk();
$result = $bbk->foo(new Bbk());
var_dump($result);