Skip to content

Commit e1fcf01

Browse files
authored
Merge pull request #77 from emodric/patch-1
Check for null before accessing the array offset
2 parents e4a5429 + bdda5fc commit e1fcf01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ private function processObject($data, Context $options, $path, $result = null)
664664
$refProperty = null;
665665
$dereference = true;
666666

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

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

0 commit comments

Comments
 (0)