@@ -42,7 +42,8 @@ |
||
| 42 | 42 | |
| 43 | 43 | try { |
| 44 | 44 | $this->timezone = new DateTimeZone($timezone === '' ? 'UTC' : $timezone); |
| 45 | - } catch (Throwable $throwable) { // \Exception < PHP 8.3, \DateInvalidTimeZoneException >= PHP 8.3 |
|
| 45 | + } catch (Throwable $throwable) { |
|
| 46 | +// \Exception < PHP 8.3, \DateInvalidTimeZoneException >= PHP 8.3 |
|
| 46 | 47 | throw new DateInvalidTimeZoneException($throwable->getMessage(), \intval($throwable->getCode()), $throwable); |
| 47 | 48 | } |
| 48 | 49 | |
@@ -25,7 +25,9 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | final class FrozenClock implements ClockInterface |
| 27 | 27 | { |
| 28 | - public function __construct(private DateTimeImmutable $now) {} |
|
| 28 | + public function __construct(private DateTimeImmutable $now) |
|
| 29 | + { |
|
| 30 | +} |
|
| 29 | 31 | |
| 30 | 32 | /** |
| 31 | 33 | * @inheritDoc |