- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ']' in /in/O0C4r on line 5
Process exited with code 255.
<?php
function test() : object
{
reutrn ['a' => '1', 'b' => '2']
}
var_dump($test);