Skip to content

PrettyPageHandler to html not working #755

Description

@jonaaix

To reproduce:
I have a very basic composer project (PHP 8.2.4, basic common extensions enabled).

While just having this code in index.php and running it from command line via php -f index.php, the $html is always an empty string.

$e = new \Exception('This is a test exception!');
$whoops = new \Whoops\Run;
$whoops->allowQuit(false);
$whoops->writeToOutput(false);
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$html = $whoops->handleException($e);

error_log($html); // => ""

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions