- Output for 5.4.1 - 5.4.45, 5.5.24 - 5.5.29, 5.6.8 - 5.6.13
- Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/sVNUY on line 4
Process exited with code 255.
<?php
abstract class test{
abstract public function hi(): string;
}
class hello extends test {
public function hi(): array
{
return [];
}
}