Skip to content

Commit 4b7fedd

Browse files
committed
id check
1 parent db5449f commit 4b7fedd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RefResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function resolveReference($referencePath)
144144
/** @var JsonSchema $branch */
145145
$branch = &$refResolver->rootData;
146146
while (!empty($path)) {
147-
if (isset($branch->id)) {
147+
if (isset($branch->id) && is_string($branch->id)) {
148148
$refResolver->updateResolutionScope($branch->id);
149149
}
150150

0 commit comments

Comments
 (0)