Skip to content

Tag reference

@phan-suppress-current-line

The @phan-suppress-current-line tag silences the listed issue types reported on the current line.

Grammar

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

Examples

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

Names by platform

phan
@phan-suppress-current-line

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

final class PhanSuppressCurrentLineTag extends IssueListTag {}

Defined by Phan.