Skip to content

Commit

Permalink
Add default cast to string
Browse files Browse the repository at this point in the history
  • Loading branch information
DyanGalih committed Jul 7, 2019
1 parent 5bbecf0 commit e0b4198
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Tools/Lazy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit e0b4198

Please sign in to comment.