Skip to content

Commit

Permalink
make phpstan happy
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-rolland committed Aug 8, 2024
1 parent 9b76277 commit 3d67784
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion classes/controller/FrontController.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,14 +541,17 @@ protected function assignGeneralPurposeVariables()
$cart = new Cart();
}

/**
* @var array<string, mixed> $templateVars
*/
$templateVars = [];

Hook::exec(
'actionFrontControllerSetVariablesBefore',
[
'templateVars' => &$templateVars,
'cart' => $cart,
],
]
);

$templateVars['cart'] = $templateVars['cart'] ?? $this->cart_presenter->present($cart);
Expand Down

0 comments on commit 3d67784

Please sign in to comment.