@@ -52,7 +52,7 @@ discard block  | 
                                                    ||
| 52 | 52 | */  | 
                                                        
| 53 | 53 | public function testCreatDateTimeWillReturnDateTimeImmutable(  | 
                                                        
| 54 | 54 | ?string $spec,  | 
                                                        
| 55 | - string|\DateTimeZone|null $timeZone = null  | 
                                                        |
| 55 | + string | \DateTimeZone | null $timeZone = null  | 
                                                        |
| 56 | 56 |      ): void { | 
                                                        
| 57 | 57 | $factory = new DateTimeImmutableFactory();  | 
                                                        
| 58 | 58 | |
@@ -88,7 +88,7 @@ discard block  | 
                                                    ||
| 88 | 88 | public function testCreatFromFormatWillReturnDateTimeImmutable(  | 
                                                        
| 89 | 89 | string $format,  | 
                                                        
| 90 | 90 | string $spec,  | 
                                                        
| 91 | - string|\DateTimeZone|null $timeZone = null  | 
                                                        |
| 91 | + string | \DateTimeZone | null $timeZone = null  | 
                                                        |
| 92 | 92 |      ): void { | 
                                                        
| 93 | 93 | $factory = new DateTimeImmutableFactory();  | 
                                                        
| 94 | 94 | |
@@ -67,7 +67,7 @@ discard block  | 
                                                    ||
| 67 | 67 | * @throws DateTimeFactoryException  | 
                                                        
| 68 | 68 | * @throws \Exception  | 
                                                        
| 69 | 69 | */  | 
                                                        
| 70 | - public function testCreateDateTime(?string $spec, string|\DateTimeZone|null $timeZone = null): void  | 
                                                        |
| 70 | + public function testCreateDateTime(?string $spec, string | \DateTimeZone | null $timeZone = null): void  | 
                                                        |
| 71 | 71 |      { | 
                                                        
| 72 | 72 | $factory = new DateTimeFactory();  | 
                                                        
| 73 | 73 | |
@@ -181,7 +181,7 @@ discard block  | 
                                                    ||
| 181 | 181 | public function testCreateFromFormatWillThrowDateTimeFactoryExceptionForInvalidDateTimeSpec(  | 
                                                        
| 182 | 182 | string $format,  | 
                                                        
| 183 | 183 | string $spec,  | 
                                                        
| 184 | - string|\DateTimeZone|null $timeZone = null  | 
                                                        |
| 184 | + string | \DateTimeZone | null $timeZone = null  | 
                                                        |
| 185 | 185 |      ): void { | 
                                                        
| 186 | 186 | $factory = new DateTimeFactory($this->dateTimeZoneFactory);  | 
                                                        
| 187 | 187 | |
@@ -242,7 +242,7 @@ discard block  | 
                                                    ||
| 242 | 242 | * @throws DateTimeFactoryException  | 
                                                        
| 243 | 243 | * @throws \Exception  | 
                                                        
| 244 | 244 | */  | 
                                                        
| 245 | - public function testCreateFromFormat(string $format, string $spec, string|\DateTimeZone|null $timeZone = null): void  | 
                                                        |
| 245 | + public function testCreateFromFormat(string $format, string $spec, string | \DateTimeZone | null $timeZone = null): void  | 
                                                        |
| 246 | 246 |      { | 
                                                        
| 247 | 247 | $factory = new DateTimeFactory($this->dateTimeZoneFactory);  | 
                                                        
| 248 | 248 | |
@@ -35,7 +35,7 @@  | 
                                                    ||
| 35 | 35 | *  | 
                                                        
| 36 | 36 | * @throws \Exception  | 
                                                        
| 37 | 37 | */  | 
                                                        
| 38 | - public function testNow(string|\DateTimeZone|null $timeZone): void  | 
                                                        |
| 38 | + public function testNow(string | \DateTimeZone | null $timeZone): void  | 
                                                        |
| 39 | 39 |      { | 
                                                        
| 40 | 40 | $clock = new Clock($this->dateTimeImmutableFactory, $timeZone);  | 
                                                        
| 41 | 41 | |
@@ -28,7 +28,7 @@ discard block  | 
                                                    ||
| 28 | 28 | */  | 
                                                        
| 29 | 29 | public function createDateTime(  | 
                                                        
| 30 | 30 | ?string $spec = null,  | 
                                                        
| 31 | - string|\DateTimeZone|null $timeZone = null  | 
                                                        |
| 31 | + string | \DateTimeZone | null $timeZone = null  | 
                                                        |
| 32 | 32 |      ): \DateTimeInterface { | 
                                                        
| 33 | 33 | return $this->dateTimeFactory->createDateTime($spec, $timeZone);  | 
                                                        
| 34 | 34 | }  | 
                                                        
@@ -39,7 +39,7 @@ discard block  | 
                                                    ||
| 39 | 39 | public function createFromFormat(  | 
                                                        
| 40 | 40 | string $format,  | 
                                                        
| 41 | 41 | string $spec,  | 
                                                        
| 42 | - string|\DateTimeZone|null $timeZone = null  | 
                                                        |
| 42 | + string | \DateTimeZone | null $timeZone = null  | 
                                                        |
| 43 | 43 |      ): \DateTimeInterface { | 
                                                        
| 44 | 44 | return $this->dateTimeFactory->createFromFormat($format, $spec, $timeZone);  | 
                                                        
| 45 | 45 | }  | 
                                                        
@@ -36,7 +36,7 @@ discard block  | 
                                                    ||
| 36 | 36 | */  | 
                                                        
| 37 | 37 | public function createDateTime(  | 
                                                        
| 38 | 38 | ?string $spec = null,  | 
                                                        
| 39 | - string|\DateTimeZone|null $timeZone = null  | 
                                                        |
| 39 | + string | \DateTimeZone | null $timeZone = null  | 
                                                        |
| 40 | 40 |      ): \DateTimeImmutable { | 
                                                        
| 41 | 41 | /**  | 
                                                        
| 42 | 42 | * @phpstan-ignore-next-line  | 
                                                        
@@ -51,7 +51,7 @@ discard block  | 
                                                    ||
| 51 | 51 | public function createFromFormat(  | 
                                                        
| 52 | 52 | string $format,  | 
                                                        
| 53 | 53 | string $spec,  | 
                                                        
| 54 | - string|\DateTimeZone|null $timeZone = null  | 
                                                        |
| 54 | + string | \DateTimeZone | null $timeZone = null  | 
                                                        |
| 55 | 55 |      ): \DateTimeImmutable { | 
                                                        
| 56 | 56 | /**  | 
                                                        
| 57 | 57 | * @phpstan-ignore-next-line  | 
                                                        
@@ -41,7 +41,7 @@ discard block  | 
                                                    ||
| 41 | 41 | /**  | 
                                                        
| 42 | 42 | * @throws DateTimeFactoryException  | 
                                                        
| 43 | 43 | */  | 
                                                        
| 44 | - public function createDateTime(?string $spec = null, string|\DateTimeZone|null $timeZone = null): \DateTimeInterface  | 
                                                        |
| 44 | + public function createDateTime(?string $spec = null, string | \DateTimeZone | null $timeZone = null): \DateTimeInterface  | 
                                                        |
| 45 | 45 |      { | 
                                                        
| 46 | 46 | $dateTimeZone = $this->resolveDateTimeZone($timeZone);  | 
                                                        
| 47 | 47 | |
@@ -63,7 +63,7 @@ discard block  | 
                                                    ||
| 63 | 63 | public function createFromFormat(  | 
                                                        
| 64 | 64 | string $format,  | 
                                                        
| 65 | 65 | string $spec,  | 
                                                        
| 66 | - string|\DateTimeZone|null $timeZone = null  | 
                                                        |
| 66 | + string | \DateTimeZone | null $timeZone = null  | 
                                                        |
| 67 | 67 |      ): \DateTimeInterface { | 
                                                        
| 68 | 68 | /** @var callable $factory */  | 
                                                        
| 69 | 69 | $factory = [$this->dateTimeClassName, 'createFromFormat'];  | 
                                                        
@@ -86,7 +86,7 @@ discard block  | 
                                                    ||
| 86 | 86 | /**  | 
                                                        
| 87 | 87 | * @throws DateTimeFactoryException  | 
                                                        
| 88 | 88 | */  | 
                                                        
| 89 | - private function resolveDateTimeZone(string|\DateTimeZone|null $timeZone): ?\DateTimeZone  | 
                                                        |
| 89 | + private function resolveDateTimeZone(string | \DateTimeZone | null $timeZone): ?\DateTimeZone  | 
                                                        |
| 90 | 90 |      { | 
                                                        
| 91 | 91 |          try { | 
                                                        
| 92 | 92 | return is_string($timeZone)  | 
                                                        
@@ -13,7 +13,7 @@ discard block  | 
                                                    ||
| 13 | 13 | */  | 
                                                        
| 14 | 14 | public function createDateTime(  | 
                                                        
| 15 | 15 | ?string $spec = null,  | 
                                                        
| 16 | - string|\DateTimeZone|null $timeZone = null  | 
                                                        |
| 16 | + string | \DateTimeZone | null $timeZone = null  | 
                                                        |
| 17 | 17 | ): \DateTimeInterface;  | 
                                                        
| 18 | 18 | |
| 19 | 19 | /**  | 
                                                        
@@ -22,6 +22,6 @@ discard block  | 
                                                    ||
| 22 | 22 | public function createFromFormat(  | 
                                                        
| 23 | 23 | string $format,  | 
                                                        
| 24 | 24 | string $spec,  | 
                                                        
| 25 | - string|\DateTimeZone|null $timeZone = null  | 
                                                        |
| 25 | + string | \DateTimeZone | null $timeZone = null  | 
                                                        |
| 26 | 26 | ): \DateTimeInterface;  | 
                                                        
| 27 | 27 | }  | 
                                                        
@@ -11,7 +11,7 @@  | 
                                                    ||
| 11 | 11 |  { | 
                                                        
| 12 | 12 | public function __construct(  | 
                                                        
| 13 | 13 | private readonly DateTimeImmutableFactory $factory,  | 
                                                        
| 14 | - private readonly string|\DateTimeZone|null $dateTimeZone = null,  | 
                                                        |
| 14 | + private readonly string | \DateTimeZone | null $dateTimeZone = null,  | 
                                                        |
| 15 | 15 |      ) { | 
                                                        
| 16 | 16 | }  | 
                                                        
| 17 | 17 | |