Skip to content

Tag reference

@phpstan-ignore

The @phpstan-ignore tag silences the listed error identifiers reported on the current line, defined by PHPStan.

Grammar

"@phpstan-ignore" <IssueName> [ "," <IssueName> ... ] [ <Description> ]

Examples

Silencing errors by their identifiers.
/** @phpstan-ignore argument.type, method.notFound */
$result = $service->run($input);

Names by platform

phpstan
@phpstan-ignore

Parsing a @phpstan-ignore tag produces a PhpStanIgnoreTag instance, carrying the listed $issues alongside the $name and optional $description every Tag already provides.

final class PhpStanIgnoreTag extends IssueListTag {}

Documented by PHPStan.