Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 14, 2025

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
@jrfnl jrfnl merged commit 2f3d62e into 4.x Apr 14, 2025
53 of 54 checks passed
@jrfnl jrfnl deleted the phpcs-4.0/feature/sq-1954-tokenizer-drop-old-style-annotations-support branch April 14, 2025 14:28
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