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