Skip to content

"Object of class DateTimeImmutable could not be converted to string" after update to 3.2.0 #307

@radekdostal

Description

@radekdostal

Version: 3.2.0

Bug Description

"Object of class DateTimeImmutable could not be converted to string" after update to 3.2.0.
I think, that exception is thrown here: https://github.com/nette/di/blob/v3.2.0/src/DI/Config/Adapters/NeonAdapter.php#L214

Steps To Reproduce

config.neon
parameters:

demand:

sendAvailableFromDate: 2024-01-03 10:00:00

Expected Behavior

Configuration parameter "sendAvailableFromDate" as DateTimeImmutable object.

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