Skip to content

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

Closed
@smnandre

Description

@smnandre

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    TwigComponentdocsImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions