Skip to content

Ensure inline type hints use /** @var */ syntax #22

Open
@quicksketch

Description

@quicksketch

This is a companion issue to the core issue at backdrop/backdrop-issues#6876. Core was using inconsistent type hinting such as /* @var Block $block */ vs /** @var Block $block */, with the second example being more supported by some developer tools and IDEs. We standardized on the second format. It would be great if PHPCS would find an catch the first syntax and report it as incorrect.

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