Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed fix for serializing custom DateTimeInterface implementations #1344

Merged
merged 2 commits into from
Oct 9, 2021

Conversation

andrei-dascalu
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
Doc updated yes/no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #1342
License MIT

Proposed fix for #1342

Consideration: there's nothing stopping a custom DateTimeInterface implementation from, say, adding extra fields. This MR does not address that, instead treats the implementation as having the same restricted responsibility as the default implementations (eg: DateTime / DateTimeImmutable) since the ticket was aimed at issues with the two main custom date time libraries (Carbon and Chronos)

@goetas goetas merged commit aff5c07 into schmittjoh:master Oct 9, 2021
@goetas
Copy link
Collaborator

goetas commented Oct 9, 2021

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants