Skip to content

Commit 98d53de

Browse files
committed
[Serializer] Add PRESERVE_CONTEXT_TIMEZONE_KEY to DateTimeNormalizer
- Change $forceTimezone argument of withForceTimezone to $force
1 parent f4b39c6 commit 98d53de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Serializer/Context/Normalizer/DateTimeNormalizerContextBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public function withCast(?string $cast): static
7474
* Configures if the timezone should be used from the context and ignore any timezone
7575
* defined in date strings.
7676
*/
77-
public function withForceTimezone(?bool $forceTimezone): static
77+
public function withForceTimezone(?bool $force): static
7878
{
79-
return $this->with(DateTimeNormalizer::FORCE_TIMEZONE_KEY, $forceTimezone);
79+
return $this->with(DateTimeNormalizer::FORCE_TIMEZONE_KEY, $force);
8080
}
8181
}

0 commit comments

Comments
 (0)