Skip to content

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