We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26605ef commit fa407ebCopy full SHA for fa407eb
src/JsonSchema/SchemaStorage.php
@@ -98,7 +98,7 @@ public function resolveRef($ref)
98
*/
99
public function resolveRefSchema($refSchema)
100
{
101
- if (is_object($refSchema) && property_exists($refSchema, '$ref')) {
+ if (is_object($refSchema) && property_exists($refSchema, '$ref') && is_string($refSchema->{'$ref'})) {
102
$newSchema = $this->resolveRef($refSchema->{'$ref'});
103
$refSchema = (object) (get_object_vars($refSchema) + get_object_vars($newSchema));
104
unset($refSchema->{'$ref'});
0 commit comments