diff --git a/src/Wrapper.php b/src/Wrapper.php index 0a0a24a..19090cf 100644 --- a/src/Wrapper.php +++ b/src/Wrapper.php @@ -105,7 +105,7 @@ public function getProperties() */ public function getProperty($name) { - return $this->schema->properties[$name]; + return isset($this->schema->properties[$name]) ? $this->schema->properties[$name] : null; } /** @@ -216,4 +216,4 @@ public function jsonSerialize() return $this->schema->jsonSerialize(); } -} \ No newline at end of file +}