Skip to content

Commit

Permalink
Merge pull request #1 from stephanniewerth/fix/exception-0-does-not-e…
Browse files Browse the repository at this point in the history
…xists

fix: prevent error if event exceptions are empty
  • Loading branch information
shyim authored Mar 5, 2024
2 parents 0b27798 + 291e09d commit 6489cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Integration/UseShopwareExceptionIgnores.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function setupOnce(): void
$exceptions = $this->exceptions;

Scope::addGlobalEventProcessor(function (Event $event) use($exceptions): ?Event {
$eventExceptions = $event->getExceptions()[0];
$eventExceptions = $event->getExceptions()[0] ?? null;

if ($eventExceptions === null) {
return $event;
Expand Down

0 comments on commit 6489cac

Please sign in to comment.