Skip to content

Commit 0433ec0

Browse files
committed
fix: change default value of HYDRA_CONTEXT_HAS_PREFIX to false in getHydraPrefix
1 parent 41e1f28 commit 0433ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonLd/Serializer/HydraPrefixTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ trait HydraPrefixTrait
2222
*/
2323
private function getHydraPrefix(array $context): string
2424
{
25-
return ($context[ContextBuilder::HYDRA_CONTEXT_HAS_PREFIX] ?? true) ? ContextBuilder::HYDRA_PREFIX : '';
25+
return ($context[ContextBuilder::HYDRA_CONTEXT_HAS_PREFIX] ?? false) ? ContextBuilder::HYDRA_PREFIX : '';
2626
}
2727
}

0 commit comments

Comments
 (0)