There was an error while loading. Please reload this page.
1 parent bc8c2e6 commit 6451450Copy full SHA for 6451450
src/Google/Model.php
@@ -46,7 +46,12 @@ public function __get($key)
46
$keyTypeName = $this->keyType($key);
47
$keyDataType = $this->dataType($key);
48
if (isset($this->$keyTypeName) && !isset($this->processed[$key])) {
49
- $val = $this->data[$key];
+ if (isset($this->data[$key])) {
50
+ $val = $this->data[$key];
51
+ } else {
52
+ $val = null;
53
+ }
54
+
55
if ($this->isAssociativeArray($val)) {
56
if (isset($this->$keyDataType) && 'map' == $this->$keyDataType) {
57
foreach ($val as $arrayKey => $arrayItem) {
0 commit comments