Running php artisan passport:install
after upgrading from php7.4 to php8.1 throws:
Class "" not found error
I have tried to bypass this error by checking for isClass
before passing $concrete
value to ReflectionClass
method in Container.php
, but this later lead to:
Type error: Laravel\Passport\Console\ClientCommand::handle(): Argument #1 ($clients) must be of type Laravel\Passport\ClientRepository, null given
Where is this empty value comes from when run php artisan passport:install
? Where is the ReflectionClass
get the list of class to check from?