Skip to content

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

Closed

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.

Activity

  1. added a commit that references this issue on May 25, 2025
    cba0caf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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