Tag reference
@phpstan-ignore-line
The @phpstan-ignore-line tag silences any error reported on the current
line, defined by PHPStan. Unlike @phpstan-ignore,
it does not name specific error identifiers.
Grammar
"@phpstan-ignore-line" [ <Description> ]Examples
$value = $legacy->call(); /** @phpstan-ignore-line */Names by platform
- phpstan
@phpstan-ignore-line
Parsing a phpstan-ignore-line tag produces a PhpStanIgnoreLineTag instance. Being a pure
marker, it adds nothing beyond the $name and optional $description
every Tag already carries.
final class PhpStanIgnoreLineTag extends FlagTag {}Documented by PHPStan.