joomla / framework.joomla.org

Application powering the internet home of the Joomla! Framework
https://framework.joomla.org
GNU General Public License v2.0
37 stars 28 forks source link

Cannot run 'vendor/bin/phinx migrate' #20

Closed C-Lodder closed 6 years ago

C-Lodder commented 7 years ago

When trying to run vendor/bin/phinx migrate, I'm getting the following error:

Parse error: syntax error, unexpected '{', expecting identifier (T_STRING) in \src\Service\ApplicationProvider.php on line 13

I tried separating all the use calls, so they don't use commas, and then received the following error:

Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in \src\Service\ApplicationProvider.php on line 200

mbabker commented 7 years ago

You are running at least PHP 7.0, right? Grouped namespace declarations are a feature in PHP 7.0 (your first parse error).

Can't help with the second one cause I'd have to see your file to know what line it's actually groaning about (the possibilities seem to be with the return type declarations, another PHP 7.0 feature, as everything in the class functions in the 100 or so lines in each direction from 200 are PHP 5.5 compatible).

C-Lodder commented 7 years ago

Yup, running PHP 7.0.10

Possible issue with that specific version. Will try upgrading to PHP 7.1 later on today