File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments