[Solved] PHP Deprecated issue when running artisan command
Laravel
Mohit Mozumder

Problem:
When I tried to update my php version 8 I am facing the following error in my laravel project -
Deprecated: Method ReflectionParameter::getClass() is deprecated in Container.php
Solution:
Open Your Composer and add php 8 Like below."php": "^7.4|^8.0",
Now Just run This command So that we can update laravel to the latest version
composer update
Also Update this libraries
PHP to php:^8.0
Faker to fakerphp/faker:^1.9.1
PHPUnit to phpunit/phpunit:^9.3
Thank you for reading the article. If you face any further problem feel free to ask us.