Skip to content

Tag reference

@phan-suppress-next-line

The @phan-suppress-next-line tag silences the listed issue types reported on the next line, mirroring @phan-suppress-current-line but targeting the line that follows.

Grammar

"@phan-suppress-next-line" <IssueName> [ "," <IssueName> ... ] [ <Description> ]

Examples

Silencing an issue on the next line.
/** @phan-suppress-next-line PhanUndeclaredMethod */
$value = $legacy->call();

Names by platform

phan
@phan-suppress-next-line

Parsing a @phan-suppress-next-line tag produces a PhanSuppressNextLineTag instance, carrying the listed $issues alongside the $name and optional $description every Tag already provides.

final class PhanSuppressNextLineTag extends IssueListTag {}

Defined by Phan.