feat: improves should not happen exception

This commit is contained in:
Nuno Maduro
2023-02-14 08:29:58 +00:00
parent 2d70f18a93
commit 9f5506364b

View File

@ -20,12 +20,11 @@ final class ShouldNotHappen extends RuntimeException
$message = $exception->getMessage();
parent::__construct(sprintf(<<<'EOF'
This should not happen - please create an new issue here: https://github.com/pestphp/pest.
- Issue: %s
- PHP version: %s
- Operating system: %s
Issue: %s
PHP version: %s
Operating system: %s
EOF
, $message, phpversion(), PHP_OS), 1, $exception);
}