Skip to content

Commit

Permalink
Fix HooksRuntime
Browse files Browse the repository at this point in the history
  • Loading branch information
loic425 committed Sep 27, 2024
1 parent 78f183b commit b104d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TwigHooks/src/Twig/Runtime/HooksRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,6 @@ private function getContext(array $hookContext, array $twigVars, ?HookableMetada

$context = $hookableMetadata?->context->all() ?? [];

return array_merge($context, $hookContext, $twigVars);
return array_merge($context, $twigVars, $hookContext);
}
}

0 comments on commit b104d76

Please sign in to comment.