Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Conversation

curzio-della-santa
Copy link
Contributor

No description provided.

'direction' => GraphNavigator::DIRECTION_SERIALIZATION,
'type' => 'DateTimeImmutable',
'format' => $format,
'method' => 'serializeDateTimeImmutable' ,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove space before ,

$this->format = $defaultFormat;
$this->timezone = new DateTimeZone($defaultTimezone);

parent::__construct($defaultFormat, $defaultTimezone);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variables are set and passed to parent constructor? Seems wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parent defines those variable as private, therefore are not available in local context

curzio-della-santa added a commit that referenced this pull request Dec 9, 2015
…ate-time-immutable

Serialization of DateTimeImmutable
@curzio-della-santa curzio-della-santa merged commit cc890cb into detailnet:master Dec 9, 2015
@curzio-della-santa curzio-della-santa deleted the feature/serialization-date-time-immutable branch December 9, 2015 08:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants