PHP Fatal error: Declaration of App\Exceptions\Handler::render($request, Throwable $exception)

This forum covers all versions of Laravel.
Post Reply
User avatar
Administrator
Site Admin
Posts: 1513
Joined: Thu Mar 22, 2018 10:19 am

PHP Fatal error: Declaration of App\Exceptions\Handler::render($request, Throwable $exception)

Post by Administrator » Mon Mar 09, 2020 2:48 pm

PHP Fatal error: Declaration of App\Exceptions\Handler::render($request, Throwable $exception) must be compatible with Illuminate\Foundation\Exceptions\Handler::render($request, Exception $e) in /home/david/Desktop/Laravel/phpCWB/app/Exceptions/Handler.php on line 10

Change the function header to the following in

Code: Select all

/app/Exceptions/Handler.php

Code: Select all

 public function render($request, \Exception $exception)

Post Reply