Skip to content

Commit 4333ead

Browse files
authored
Typo in code $variables['custom'] => 'value';
$variables['custom'] => 'value' is a typo, should read $variables['custom'] = 'value';
1 parent a02daec commit 4333ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwigComponent/src/Resources/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ the twig template and twig variables before components are rendered::
623623

624624
// manipulate the variables:
625625
$variables = $event->getVariables();
626-
$variables['custom'] => 'value';
626+
$variables['custom'] = 'value';
627627

628628
$event->setVariables($variables); // {{ custom }} will be available in your template
629629
}

0 commit comments

Comments
 (0)