Skip to content

Commit 1862287

Browse files
committed
fix whoops being instantiated when not available
1 parent 7b3be9f commit 1862287

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Exceptions/ExceptionsServiceProvider.php

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ public function register( $container ) {
2626
] );
2727

2828
$container['whoops'] = function( $container ) {
29+
if ( ! class_exists( Run::class ) ) {
30+
return null;
31+
}
32+
2933
$run = new Run();
3034
$run->allowQuit( false );
3135
$run->pushHandler( new PrettyPageHandler() );

0 commit comments

Comments
 (0)