Skip to content

Commit 6609e1e

Browse files
committed
style: $context always exists
1 parent 625cccb commit 6609e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Documentation/Action/DocumentationAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function __invoke(Request $request = null): DocumentationInterface
8888
}
8989

9090
if ('json' === $request->getRequestFormat() && null !== $this->openApiFactory && 3 === ($context['spec_version'] ?? null)) {
91-
return $this->openApiFactory->__invoke($context ?? []);
91+
return $this->openApiFactory->__invoke($context);
9292
}
9393

9494
return new Documentation($this->resourceNameCollectionFactory->create(), $this->title, $this->description, $this->version, $this->formats);

0 commit comments

Comments
 (0)