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

DateTimeConverter should allow DateTimeInterface instances #189

@AzeemMichael

Description

@AzeemMichael

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions