Skip to content

Commit

Permalink
Merge pull request #77 from emodric/patch-1
Browse files Browse the repository at this point in the history
Check for null before accessing the array offset
  • Loading branch information
vearutop authored Aug 4, 2019
2 parents e4a5429 + bdda5fc commit e1fcf01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ private function processObject($data, Context $options, $path, $result = null)
$refProperty = null;
$dereference = true;

if (isset($array[self::PROP_REF])) {
if ($this->properties !== null && isset($array[self::PROP_REF])) {
$refProperty = $this->properties[self::PROP_REF];

if (isset($refProperty) && ($refProperty->format !== Format::URI_REFERENCE)) {
Expand Down

0 comments on commit e1fcf01

Please sign in to comment.