src/Configuration/WhoopsConfiguration.php
public function prepareWhoops(Whoops $whoops)
    {
        if($this->env->getValue('DEBUG_STACKTRACE', false) == true) {
            set_error_handler([$whoops, Whoops::ERROR_HANDLER]);
        }

        $whoops->writeToOutput(false);
        $whoops->allowQuit(false);
    }
public function prepareWhoops(Whoops $whoops)
    {
        if($this->env->getValue('DEBUG_STACKTRACE', false) == true) {
            set_error_handler([$whoops, Whoops::ERROR_HANDLER]);
        }

        $whoops->writeToOutput(false);
        $whoops->allowQuit(false);
    }
@param Whoops $whoops

@return void