|
@@ -38,7 +38,8 @@ |
|
|
block discarded – undo |
|
38
|
38
|
if (\is_string($timezone)) { |
|
39
|
39
|
try { |
|
40
|
40
|
$timezone = new \DateTimeZone($timezone); |
|
41
|
|
- } catch (\Throwable $throwable) { // \Exception < PHP 8.3, \DateInvalidTimeZoneException >= PHP 8.3 |
|
|
41
|
+ } catch (\Throwable $throwable) { |
|
|
42
|
+// \Exception < PHP 8.3, \DateInvalidTimeZoneException >= PHP 8.3 |
|
42
|
43
|
throw new \DateInvalidTimeZoneException($throwable->getMessage(), \intval($throwable->getCode()), $throwable); |
|
43
|
44
|
} |
|
44
|
45
|
} |
Please login to merge, or discard this patch.