From 3afcaef927391db23fe23c6c8c26b8960e8dae32 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 29 Nov 2023 09:35:27 +0100 Subject: intermediate commit --- src/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Model.php') diff --git a/src/Model.php b/src/Model.php index 5f45ed4..2720486 100644 --- a/src/Model.php +++ b/src/Model.php @@ -9,7 +9,7 @@ class Model $object = new $cast(); foreach (get_class_vars(get_class($original)) as $property => $_) { - if (! empty($original->$property) && empty($object->$property)) { + if (isset($original->$property) && ! isset($object->$property)) { $object->$property = $original->$property; } } -- cgit v1.2.3