Skip to content

[TwigComponent][Doc] Remove false mention of PHP parsing #1979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
smnandre opened this issue Jul 11, 2024 · 0 comments · Fixed by #1985
Closed

[TwigComponent][Doc] Remove false mention of PHP parsing #1979

smnandre opened this issue Jul 11, 2024 · 0 comments · Fixed by #1985
Labels
docs Improvements or additions to documentation TwigComponent

Comments

@smnandre
Copy link
Member

Message on Slack:


When i am using the array syntax described in the codeblock https://symfony.com/bundles/ux-twig-component/current/index.html#component-html-syntax

// pass object, array, or anything you imagine
<twig:Alert :foo="['col' => ['foo', 'oof']]" />

, i get following error:

An array element must be followed by a comma. Unexpected token "arrow function" of value "=>" ("punctuation" expected with value ",").


We need to remove it from the documentation

@smnandre smnandre added docs Improvements or additions to documentation TwigComponent labels Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation TwigComponent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant