i have error in laravel on function /vendor/guzzlehttp/psr7/src/functions.php on line 77 [duplicate]
This question already has an answer here : Difference in accessing arrays in PHP 5.3 and 5.4 or some configuration mismatch? (1 answer) Closed 4 years ago . I upload laravel 4 files on shared server and then i see this error. Parse error: syntax error, unexpected '[' in . /vendor/guzzlehttp/psr7/src/functions.php on line 77 in line 77: function stream_for($resource = '', array $options = []) Short array syntax [] was added in PHP 5.4, so I guess you're running some older version of PHP on the shared server. Normally replacing [] with array() would help, but here it is an external vendor