Skip to content

Attribute is not repeatable error in PHP 8.5 #11610

@iquito

Description

@iquito

For all repeatable attributes I get the following error in Psalm 6.14.1 and PHP 8.5 (when they are repeated):

ERROR: InvalidAttribute - src/App/Controller/CustomerController.php:41:7 - Attribute Route is not repeatable (see https://psalm.dev/242)
    #[Route('/customer/create', methods: ['GET', 'POST'], name: 'customer_create')]

In PHP 8.4 this error does not occur, so something about PHP 8.5 seems to throw Psalm off.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions