Skip to content

Complex/conditional phpdoc is not parsed/indented correctly #6568

@mvorisek

Description

@mvorisek

Bug report

Code snippet that reproduces the problem

file: https://github.com/atk4/ui/blob/f92de2734264a328918e61b28f5822c88eecf60b/src/View.php#L971
config: https://github.com/atk4/ui/blob/f92de2734264a328918e61b28f5822c88eecf60b/.php-cs-fixer.dist.php
PHP CS Fixer version: latest/3.10.0

the following fix atk4/ui@d592b86 was needed to satisfy PHP CS Fixer, but the indentation is corrupted

It seems the complex phpstan phpdoc conditional type is not parsed by PHP CS Fixer correctly.

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