castTo: foreach() argument must be of type array|object, string given
Closed this issue · 1 comments
radimvaculik commented
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
🤷
radimvaculik commented
Linking similar issue – #44