Skip to content

Commit f0ccfff

Browse files
committed
Add tests for building JSON Schema of non-resource class
1 parent 320c48c commit f0ccfff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SchemaFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ private function getMetadata(string $className, string $type = Schema::TYPE_OUTP
238238
if (!$this->isResourceClass($className)) {
239239
return [
240240
null,
241-
$serializerContext,
241+
$serializerContext ?? [],
242242
$className,
243243
];
244244
}

0 commit comments

Comments
 (0)