Skip to content

Commit

Permalink
[TwigBridge] Avoid calling deprecated mergeGlobals()
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Sep 9, 2024
1 parent 0057d05 commit 978b78a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Form/TwigRendererEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function renderBlock(FormView $view, $resource, string $blockName, array
{
$cacheKey = $view->vars[self::CACHE_KEY_VAR];

$context = $this->environment->mergeGlobals($variables);
$context = $variables + $this->environment->getGlobals();

ob_start();

Expand Down Expand Up @@ -164,7 +164,7 @@ protected function loadResourcesFromTheme(string $cacheKey, &$theme)
// theme is a reference and we don't want to change it.
$currentTheme = $theme;

$context = $this->environment->mergeGlobals([]);
$context = $this->environment->getGlobals();

// The do loop takes care of template inheritance.
// Add blocks from all templates in the inheritance tree, but avoid
Expand Down

0 comments on commit 978b78a

Please sign in to comment.