throw exception instead of using Panic

This commit is contained in:
Antoine Bluchet
2025-03-18 14:49:32 +01:00
committed by GitHub
parent ed70c9dc2b
commit 174645caa2

View File

@ -101,7 +101,7 @@ final class TestSuite
} }
if (! self::$instance instanceof self) { if (! self::$instance instanceof self) {
Panic::with(new InvalidPestCommand); throw new InvalidPestCommand;
} }
return self::$instance; return self::$instance;