From b104d76d7e5ff2fcc01b3fb76ae88014090f6975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Fr=C3=A9mont?= Date: Fri, 27 Sep 2024 22:33:42 +0200 Subject: [PATCH] Fix HooksRuntime --- src/TwigHooks/src/Twig/Runtime/HooksRuntime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TwigHooks/src/Twig/Runtime/HooksRuntime.php b/src/TwigHooks/src/Twig/Runtime/HooksRuntime.php index 21fba65f..037d6ce4 100644 --- a/src/TwigHooks/src/Twig/Runtime/HooksRuntime.php +++ b/src/TwigHooks/src/Twig/Runtime/HooksRuntime.php @@ -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); } }