Skip to content

phpcs:ignore annotation doesnt work inside a docblock #2868

Closed
@edwardspec

Description

@edwardspec

I'm trying to suppress "Line exceeds 100 characters" warning in the following code:

	/**
	 * @phan-param array{src:string,dst:string,headers?:array<string,string>,ignoreMissingSource?:bool} $params
	 */
	public function something( array $params ) {
	}
2 | WARNING | Line exceeds 100 characters; contains 108 characters

Even with // phpcs:ignore before the @phan-param line (or at the end of this line) the warning was still emitted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions