Skip to content

Tag reference

@phan-suppress-previous-line

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

Grammar

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

Examples

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

Names by platform

phan
@phan-suppress-previous-line

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

final class PhanSuppressPreviousLineTag extends IssueListTag {}

Defined by Phan.