Skip to content

Commit 0c6e753

Browse files
authored
Merge pull request #101 from remicollet/issue-74
fix Trying to access array offset on value of type null (7.4)
2 parents 9ec863a + 2d8ed28 commit 0c6e753

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Wrapper.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function getProperties()
105105
*/
106106
public function getProperty($name)
107107
{
108-
return $this->schema->properties[$name];
108+
return isset($this->schema->properties[$name]) ? $this->schema->properties[$name] : null;
109109
}
110110

111111
/**
@@ -216,4 +216,4 @@ public function jsonSerialize()
216216
return $this->schema->jsonSerialize();
217217
}
218218

219-
}
219+
}

0 commit comments

Comments
 (0)