Skip to content

Commit f45837e

Browse files
committed
fix SchemasProvider
1 parent ebff100 commit f45837e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/ApiPlatform/SchemasProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public function getSchemas(): array
3030
$filePath = $this->kernel->locateResource($fileName);
3131
$schemas = Yaml::parseFile($filePath);
3232

33-
$allSchemas = array_merge($allSchemas, $schemas['schemas']);
33+
if (isset($schemas['schemas'])) {
34+
$allSchemas = array_merge($allSchemas, $schemas['schemas']);
35+
}
3436
}
3537

3638
return $allSchemas;

0 commit comments

Comments
 (0)