-4

Everything was working well but after doing composer update, I am facing this error

FatalErrorException syntax error, unexpected '?' in LaravelLocalization.php line 896 ",

what is wrong? I'm using mcamara/laravel-localization package

Hervera
  • 584
  • 9
  • 17

1 Answers1

1

I checked that line inside the code of the package - the error is caused by the ?? operator introduced with PHP7 (http://php.net/manual/en/migration70.new-features.php). It seems you're using an older version of PHP - try switching to version 1.2 of this package.

jedrzej.kurylo
  • 39,591
  • 9
  • 98
  • 107