PHP TypeLang Help

PHP CodeSniffer Tags

The PHP CodeSniffer Tags are the annotations PHP_CodeSniffer recognizes to turn its own rules on and off inside a file. Unlike every other group in this section, these tags have nothing to do with types or documentation at all — they are coding-standard directives, telling the sniffer to skip a line, a block, or a whole file when checking style.

They come in two spellings: the modern @phpcs: form and the older @codingStandardsIgnore* family kept for backward compatibility with rules written against earlier PHP_CodeSniffer releases.

What This Group Covers

For the authoritative behavior, see PHP_CodeSniffer's wiki on ignoring code.

12 July 2026