0

I have read a lot syntax error but seldom on the error of '?'

I also saw a few post that stated this might be due to old PHP version.

So my question is does PHP5.6 isn't enough? I am using Godaddy as my host and PHP5.6 is the highest they provide.

The full error description is:

PHP Parse error: syntax error, unexpected '?' in G:\PleskVhosts\tohokiwatch.com\httpdocs\cart\vendor\illuminate\database\Eloquent\Model.php on line 579

MyPHP page stated version 5.5.30:

Myphpadmin page

But my GoDaddy page stated version 5.6.30

mega6382
  • 9,211
  • 17
  • 48
  • 69

1 Answers1

4

The null coalesce operator, ?? does not exist in php 5.5 or 5.6, it was added in php 7.0

Xyz
  • 5,955
  • 5
  • 40
  • 58