webpatser/laravel-countries

PHP Parse error: syntax error, unexpected '[' in ... /src/commands/MigrationCommand.php on line 94

Closed this issue · 3 comments

tx2z commented

Hi I have this error in composer after update to the latest version:

PHP Parse error: syntax error, unexpected '[' in ... /src/commands/MigrationCommand.php on line 94

$migrationFiles is supposed to be an array, isn't it ? I can send you a pull request, but maybe it's easy for you to solve it directly.... Whatever you want.

Thank you for the bundle anyway :)

Best regards

This is due to you running a PHP version < 5.4 (which you really should be running by now). But since the composer file says you need PHP >= 5.3 and this is package is meant for older systems aswell I'll adjust it.

tx2z commented

Yes, I'm in PHP 5.3 (I can't directly change it, it's a corporate environment, but you're right, I'll ask for it). Thank you for the response!

Don't worry, I fixed it, just composer update and it should work like a charm :)