Reputation: 11
I am using cron to mail users after 1 min but it's giving me this error
unexpected '?' in /home/nonnon/public_html/dispatchSystem/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233
but my laravel is working fine its just giving me an error in cron.
my laravel version '5.5.19'
my server php version 7
can anybody help me? if I have to update the version from where I can update it for this particular file in cpanel. i don't want to upset my other sites on the server because of the php version updation.
Upvotes: 0
Views: 159
Reputation: 40919
Laravel 5.5 requires PHP7 to run. The error you're getting is caused by the null coalescing operator introduced in PHP7 and used in helpers.php
You can check that in the Laravel 5.5 upgrade guide here: https://laravel.com/docs/5.5/upgrade#upgrade-5.5.0
You'll need to either upgrade PHP or downgrade Laravel framework.
Upvotes: 1
Reputation: 1236
The parse error was caused by Laravel. Unfortunately Laravel
version 5.5 depends on PHP
version 7, so you can try to use Laravel version 5.1 which is matching your environment.
Upvotes: 0