We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b8206 commit c0def49Copy full SHA for c0def49
src/ErrorPayload.php
@@ -57,6 +57,7 @@ public function toArray(): array
57
58
protected function getOrigin(): Origin
59
{
60
+
61
/** @var \Spatie\Ray\Origin\OriginFactory $originFactory */
62
$originFactory = new self::$originFactoryClass;
63
src/Ray.php
@@ -12,6 +12,10 @@ public function init($debug = false)
12
13
$this->debug = $debug;
14
15
+ if( ! class_exists('Spatie\Ray\Origin\Origin') ) {
16
+ return;
17
+ }
18
19
set_exception_handler([$this, 'setExceptionHandler']); // exception
20
set_error_handler([$this, 'setErrorHandler']); // error
21
register_shutdown_function([$this, 'registerShutdownFunction']); // fatal error
0 commit comments