Skip to content

Commit

Permalink
Implement robust handling of forwarding of exception codes (#42393)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored May 16, 2022
1 parent 70e7b98 commit d86b073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ public function get(string $id)
throw $e;
}

throw new EntryNotFoundException($id, $e->getCode(), $e);
throw new EntryNotFoundException($id, is_int($e->getCode()) ? $e->getCode() : 0, $e);
}
}

Expand Down

0 comments on commit d86b073

Please sign in to comment.