I am trying to get userfrosting up on Mac OS Sierra with php 5.6.3. I have been using a local environment for over a year now so the local server has been working fine. When I got through with the install I loaded http://localhost/userfrosting/public/ and receive the following message:
UserFrosting Application Error
Parse error: parse error, expecting `"variable (T_VARIABLE)"' in /Library/WebServer/Documents/userfrosting/app/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 40
I doubt that that line is the issue but rather something else is wrong. Here are the relevant lines of that file anyways:
private const PARAM_TYPE_MAP = [ //This is line 40 ParameterType::NULL => PDO::PARAM_NULL, ParameterType::INTEGER => PDO::PARAM_INT, ParameterType::STRING => PDO::PARAM_STR, ParameterType::LARGE_OBJECT => PDO::PARAM_LOB, ParameterType::BOOLEAN => PDO::PARAM_BOOL, ];
I found some information to a similar problem on a laracasts thread about a “splat operator” before 5.6.4 causing issues but my version is 5.6 or greater as per userfrost docs which should be sufficient.
Any help would be much appreciated.