FatalErrorException in Inflector.php line 265: syntax error, unexpected ':', expecting ';' or '{'

Channel:
Subscribers:
25,900
Published on ● Video Link: https://www.youtube.com/watch?v=XZrRRa0XAb8



Duration: 4:00
1,980 views
16


Hello Guys,Today we will solve this Error In Laravel
In Inflector.php line 267:
syntax error, unexpected ':', expecting ';' or '{'

we just have to update the composer

write composer update in terminal

Please Like ,Share and Subscribe

I Hope this Tutorial will solve the problem.

Thanks for Watching! :)

It's a PHP version issue, update to PHP 7.0 and doctrine/inflector will work properly because doctrine/inflector 1.20 and above require PHP 7.

But if you want to stay at your current PHP version, you can downgrade the doctrine/inflector version by running the following commands:

Delete the composer.lock file

rm -f Composer.lock

Delete the vendor

rm -R -f vendor

composer install

Install the doctrine/inflector according to your php version

composer require doctrine/inflector:1.1.0

doctrine/inflector:1.1.0 supports PHP 5.6 & above.







Tags:
FatalErrorException in Inflector.php line 265: syntax error
unexpected ':'
expecting ';' or '{'
error.