Thomasvdw
3 months ago
328
1
Laravel

composer install fails on App\Exceptions\Handler does not exist

Posted 3 months ago by Thomasvdw

On CentosOS with following:

  • php 7.2.31
  • "laravel/framework": "6.10.*"

Locally created composer.lock file and used that to perform composer install on CentosOS, but is stick with following error:

PHP Fatal error: Declaration of App\Exceptions\Handler::report(Throwable $exception) must be compatible with Illuminate\Foundation\Exceptions\Handler::report(Exception $e) in /var/www/bikegeartracker.com/laravel/app/Exceptions/Handler.php on line 8 PHP Fatal error: Uncaught ReflectionException: Class App\Exceptions\Handler does not exist in /var/www/bikegeartracker.com/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:803

Tried:

  • rebuilding composer.lock file; same result
  • removing laravel directory in vendor, clearing cache; same result
  • removing laravel in full; same result.

Any suggestions?

Please sign in or create an account to participate in this conversation.