PluginProbe
WP-Stateless – Google Cloud Storage / trunk
WP-Stateless – Google Cloud Storage vtrunk
4.4.3 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.3.0 2.3.1 2.3.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 All 62 releases
← All changes | lib/Google/src/Model.php +2 -1 3.2.1trunk View file →
@@ -27,8 +27,9 @@
27 27 * from a given json schema.
28 28 * http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5
29 29 *
30 30 */
31 +#[\AllowDynamicProperties]
31 32 class Model implements \ArrayAccess
32 33 {
33 34 /**
34 35 * If you need to specify a NULL JSON value, use Google\Model::NULL_VALUE
@@ -292,9 +293,9 @@
292 293 {
293 294 $keyType = $key . "Type";
294 295
295 296 // ensure keyType is a valid class
296 - if (property_exists($this, $keyType) && class_exists($this->$keyType)) {
297 + if (property_exists($this, $keyType) && $this->$keyType !== null && class_exists($this->$keyType)) {
297 298 return $this->$keyType;
298 299 }
299 300 }
300 301