Skip to content

Parsing error for if Entity has a grouped use statement #1142

Open
@I70l0teN4ik

Description

@I70l0teN4ik

make:entity command fails with exception:

 Message: "Syntax error, unexpected T_USE, expecting ';' on line 6" ["exception" => PhpParser\Error^ { …}

In case if related entity has a grouped use statements like:

use Doctrine\Common\Collections\{ArrayCollection, Collection};

While adding same ManyToOne field works perfectly if I split that grouping in the target entity file.

Symfony 4.4.41. Maker bundle 1.39.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions