@@ -21,7 +21,9 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | final class FrozenClock implements ClockInterface |
| 23 | 23 | { |
| 24 | - public function __construct(private \DateTimeImmutable $now) {} |
|
| 24 | + public function __construct(private \DateTimeImmutable $now) |
|
| 25 | + { |
|
| 26 | +} |
|
| 25 | 27 | |
| 26 | 28 | /** |
| 27 | 29 | * @inheritDoc |
@@ -38,7 +38,8 @@ |
||
| 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 | } |