mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 22:33:35 +02:00
chore: coding style changes
This commit is contained in:
+1
-10
@@ -14,18 +14,12 @@ use Whoops\Exception\Inspector;
|
||||
|
||||
final readonly class Panic
|
||||
{
|
||||
/**
|
||||
* Creates a new Panic instance.
|
||||
*/
|
||||
private function __construct(
|
||||
private Throwable $throwable
|
||||
) {
|
||||
// ...
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new Panic instance, and exits the application.
|
||||
*/
|
||||
public static function with(Throwable $throwable): never
|
||||
{
|
||||
if ($throwable instanceof TestDescriptionMissing && ! is_null($previous = $throwable->getPrevious())) {
|
||||
@@ -39,9 +33,6 @@ final readonly class Panic
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles the panic.
|
||||
*/
|
||||
private function handle(): void
|
||||
{
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user