Skip to content

Commit 206d352

Browse files
committed
DateTime - Rename defaultFormat to defaultSerializationFormat
1 parent 1b5c27f commit 206d352

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Handler/DateHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class DateHandler implements SubscribingHandlerInterface
1616
/**
1717
* @var string
1818
*/
19-
private $defaultFormat;
19+
private $defaultSerializationFormat;
2020

2121
/**
2222
* @var array<string>
@@ -83,7 +83,7 @@ public function __construct(
8383
bool $xmlCData = true,
8484
array $defaultDeserializationFormats = []
8585
) {
86-
$this->defaultFormat = $defaultFormat;
86+
$this->defaultSerializationFormat = $defaultFormat;
8787
$this->defaultDeserializationFormats = [] === $defaultDeserializationFormats ? [$defaultFormat] : $defaultDeserializationFormats;
8888
$this->defaultTimezone = new \DateTimeZone($defaultTimezone);
8989
$this->xmlCData = $xmlCData;
@@ -307,7 +307,7 @@ private function getDeserializationFormats(array $type): array
307307

308308
private function getSerializationFormat(array $type): string
309309
{
310-
return $type['params'][0] ?? $this->defaultFormat;
310+
return $type['params'][0] ?? $this->defaultSerializationFormat;
311311
}
312312

313313
public function format(\DateInterval $dateInterval): string

0 commit comments

Comments
 (0)