Skip to content

Commit b0500d9

Browse files
committed
minor #315 Typo in code $variables['custom'] => 'value'; (htmlshaman1)
This PR was merged into the 2.x branch. Discussion ---------- Typo in code $variables['custom'] => 'value'; $variables['custom'] => 'value' is a typo, should read $variables['custom'] = 'value'; | Q | A | ------------- | --- | Bug fix? | yes/no | New feature? | yes/no <!-- please update src/**/CHANGELOG.md files --> | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Features and deprecations must be submitted against branch main. --> Commits ------- 4333ead Typo in code $variables['custom'] => 'value';
2 parents a02daec + 4333ead commit b0500d9

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)