Skip to content

castTo: foreach() argument must be of type array|object, string given #58

@radimvaculik

Description

@radimvaculik

Version: 1.2.4

Bug Description

When calling castTo twice, it produces a warning.

Steps To Reproduce

https://fiddle.nette.org/nette/#d9bfa4be37

Expected Behavior

No warning. Input string will be successfully mapped to target class DateTime property.

Possible Solution

🤷

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