diff --git a/src/services/BaseServiceResponse.php b/src/services/BaseServiceResponse.php index 98e6090..708ef53 100644 --- a/src/services/BaseServiceResponse.php +++ b/src/services/BaseServiceResponse.php @@ -17,7 +17,7 @@ abstract class BaseServiceResponse { */ public function __construct(stdClass $response) { foreach (get_object_vars($this) as $name => $value) { - if (!empty($response->$name)) { + if (isset($response->$name)) { $this->$name = $response->$name; } }