Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

DateTimeConverter should allow DateTimeInterface instances #189

Open
AzeemMichael opened this issue Dec 8, 2019 · 0 comments
Open

DateTimeConverter should allow DateTimeInterface instances #189

AzeemMichael opened this issue Dec 8, 2019 · 0 comments

Comments

@AzeemMichael
Copy link

I'm trying out api-platform.com. It seems to send datetime payload as DateTimeImmutable object. DateTimeConverter::toDatabaseValue() line 33 only allows DateTime objects. Changing it to DateTimeInterface should fix it. It should allow any objects that implement DateTimeInterface regardless.

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

No branches or pull requests

1 participant