FatalErrorException in Inflector.php line 265: syntax error, unexpected ':', expecting ';' or '{'
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.
Other Videos By Tutorial 4You
2022-05-17 | How to download XAMPP SERVER | LOCALHOST/PHPMYADMIN | TUTORIAL4YOU |
2022-03-31 | This Extension is not installable on any currently installed products Error Solved Visual Studio |
2021-12-28 | Access to the path is denied Error Solved somee.com | Tutorial4You |
2021-12-23 | The 'CodeMaidPackage' package did not load correctly Error Solved Visual Studio | Tutorial4You |
2020-11-02 | How to remove a Value or Item from Array in JavaScript |
2020-10-29 | How to Publish Your Website for Free using 000webhost | Latest Video |
2020-10-21 | How to Solve Unzip Error in 000webhost | Tutorial4You | Latest |
2020-08-07 | Simple Underline Animation in Filmora |
2020-02-03 | Variable,Arrays,IF Statement,For loop and a simple Login Form | Tutorial4You | Tutorial 2 |
2020-01-29 | How to download/Install AngularJS:From Scratch Complete Setup | Tutorial4You | Tutorial 1 |
2019-11-23 | FatalErrorException in Inflector.php line 265: syntax error, unexpected ':', expecting ';' or '{' |