Hi, I just got started with laragon, and it has php 7.1.14 and latest version of laravel 5.6 which is according to docs requires PHP >= 7.1.3 , but the laravel fails , when I run phpunit it thorws this error:
Parse error: syntax error, unexpected ':' in C:\laragon\www\forum\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php on line 233
What version of php should I use with laravel 5.6 ?
Having php 7.1 installed is not the same as running php 7.1.
in yourpublic/index.php file write phpinfo(); and check in browser which version of php laravel uses . remove php 5.6 apt-get purge php5.6-common if you like and run these commands
sudo a2dismod php5.6
sudo a2enmod php7.1
sudo service apache2 restart
The error on that line is being thrown because a null coalescing operator is being used, which was added in php7 and is incompatible with php5. like I said earlier remove all previous versions of php if you won't use them. and enable php 7.1