Skip to content

Commit

Permalink
Clean up unused variable in catch
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Dec 23, 2023
1 parent cd6ce59 commit 4682c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TimeZoneRegion.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static function of(string $id): TimeZoneRegion

try {
return new TimeZoneRegion(new DateTimeZone($id));
} catch (Exception $e) {
} catch (Exception) {
throw DateTimeException::unknownTimeZoneRegion($id);
}
}
Expand Down

0 comments on commit 4682c4e

Please sign in to comment.