mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 18:27:23 +01:00
feat: improves should not happen exception
This commit is contained in:
@ -20,12 +20,11 @@ final class ShouldNotHappen extends RuntimeException
|
|||||||
$message = $exception->getMessage();
|
$message = $exception->getMessage();
|
||||||
|
|
||||||
parent::__construct(sprintf(<<<'EOF'
|
parent::__construct(sprintf(<<<'EOF'
|
||||||
|
|
||||||
This should not happen - please create an new issue here: https://github.com/pestphp/pest.
|
This should not happen - please create an new issue here: https://github.com/pestphp/pest.
|
||||||
|
|
||||||
- Issue: %s
|
Issue: %s
|
||||||
- PHP version: %s
|
PHP version: %s
|
||||||
- Operating system: %s
|
Operating system: %s
|
||||||
EOF
|
EOF
|
||||||
, $message, phpversion(), PHP_OS), 1, $exception);
|
, $message, phpversion(), PHP_OS), 1, $exception);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user