Skip to content

Commit d613c98

Browse files
authored
Merge pull request #16 from beholdr/patch-2
Check for $exception->code property
2 parents cc961ad + 6758fd0 commit d613c98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Http/Controllers/WorkflowsController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public function show($id) {
4242
});
4343

4444
$flow->exceptions = $flow->exceptions->map(function ($exception) {
45+
$exception->code ??= null;
4546
$unserialized = Y::unserialize($exception->exception);
4647
if (is_array($unserialized) && array_key_exists('class', $unserialized) && is_subclass_of($unserialized['class'], \Throwable::class)) {
4748
$file = new SplFileObject($unserialized['file']);

0 commit comments

Comments
 (0)