Skip to content

Multi Line Generic Types are invalid #42

Closed
@ServerExe

Description

@ServerExe

Bug report

PhpStan-Version: 0.12.19

The following error occurs when trying to declare a multi lined Generics annotation:

PHPDoc tag @implements has invalid value (HelloInterface< Foo, Bar): Unexpected token "\n *", expected type at offset 34

Code snippet that reproduces the problem

https://phpstan.org/r/80a149d9-5820-4041-bf3b-4b6e19de6b09

Expected output

No errors! as it is in:
https://phpstan.org/r/08857dad-5e7b-4615-9c99-f3397aa204ce

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