Skip to content

Tokenizer: remove support for the deprecated @codingStandard annotation syntax - #975

Merged
jrfnl merged 1 commit into
4.xfrom
phpcs-4.0/feature/sq-1954-tokenizer-drop-old-style-annotations-support
Apr 14, 2025
Merged

jrfnl merged 1 commit into
4.xfrom
phpcs-4.0/feature/sq-1954-tokenizer-drop-old-style-annotations-support

Conversation

@jrfnl

@jrfnl jrfnl commented Apr 14, 2025 •

Copy link
Copy Markdown
Member

Description

This annotation syntax was deprecated in PHPCS 3.2.0, which also introduced the new // phpcs:... syntax as a replacement.

Suggested changelog entry

Removed:

  • Support for the deprecated @codingStandard annotation syntax has been removed.
    • Use the phpcs: or @phpcs: syntax instead
      • Replace @codingStandardsIgnoreFile with phpcs:ignoreFile
      • Replace @codingStandardsIgnoreStart with phpcs:disable
      • Replace @codingStandardsIgnoreEnd with phpcs:enable
      • Replace @codingStandardsIgnoreLine with phpcs:ignore
      • Replace @codingStandardsChangeSetting with phpcs:set

Related issues/external references

Fixes squizlabs/PHP_CodeSniffer#1954

Related to #6

…on syntax

This annotation syntax was deprecated in PHPCS 3.2.0, which also introduced the new `// phpcs:...` syntax as a replacement.

Fixes squizlabs/PHP_CodeSniffer 1954

Related to 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants