Skip to content

Commit 3103ade

Browse files
valentin-dassonvilledunglassoyuka
authored
fix(hydra): store and use hydra context in a local variable (#6765)
Co-authored-by: Kévin Dunglas <[email protected]> Co-authored-by: soyuka <[email protected]>
1 parent 6e8eef7 commit 3103ade

File tree

3 files changed

+923
-1
lines changed

3 files changed

+923
-1
lines changed

ContextBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private function getResourceContextWithShortname(string $resourceClass, int $ref
185185
}
186186

187187
if (false === ($this->defaultContext[self::HYDRA_CONTEXT_HAS_PREFIX] ?? true)) {
188-
return [ContextBuilderInterface::HYDRA_CONTEXT, $context];
188+
return [HYDRA_CONTEXT, $context];
189189
}
190190

191191
return $context;

0 commit comments

Comments
 (0)