Skip to content

Commit

Permalink
🐛 accept Error as attribute for Referencable (#2420)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKrisKrisu authored Mar 15, 2024
1 parent 28b0f96 commit 326ad84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Helpers/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function hasStationBoardTimezoneOffsetToUser(Collection $departures, User $user)
return false;
}

function errorMessage(Exception $exception, ?string $text = null): array|null|string {
function errorMessage(Exception|Error $exception, ?string $text = null): array|null|string {
$text = $text ?? __('messages.exception.general');

if (!$exception instanceof Referencable) {
Expand Down

0 comments on commit 326ad84

Please sign in to comment.