diff --git a/src/Tools/Lazy.php b/src/Tools/Lazy.php index 1f7c479..90aa798 100644 --- a/src/Tools/Lazy.php +++ b/src/Tools/Lazy.php @@ -165,6 +165,9 @@ public static function copyFromArray(array $fromArray, object $toClass, int $opt case "boolean": $toClass->$key = (bool)$fromArray[$key];; break; + default : + $toClass->$key = (string)$fromArray[$key]; + break; } }