Skip to content

Commit

Permalink
Template::getParameters() skips $_l $_g
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 9, 2021
1 parent 6e0540c commit adbdc62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Latte/Runtime/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ public function getName(): string
*/
public function getParameters(): array
{
return $this->params;
$params = $this->params;
unset($params['_l'], $params['_g']);
return $params;
}


Expand Down

0 comments on commit adbdc62

Please sign in to comment.