Skip to content

Ruleset: hard deprecate use of the old property array format #890

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

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Mar 18, 2025

Description

This format was (soft) deprecated in PHPCS 3.3.0 (June 2018) and it is expected that most rulesets will have been updated.

With the new "error handling" functionality in the Ruleset class in place (PR #857), the old format can now be hard deprecated to make users who haven't updated their rulesets yet, aware of the upcoming removal of support for the old array format.

Refs:

Suggested changelog entry

Added deprecation notices (hard deprecation) for:

  • The old array property setting format (via comma separated strings), which will be removed in PHPCS 4.0.

Related issues/external references

Closes #693

@jrfnl jrfnl added this to the 3.x Last milestone Mar 18, 2025
@jrfnl jrfnl force-pushed the feature/693-sq1665-ruleset-deprecate-use-of-old-array-format branch from f2274bd to f63aa0c Compare March 23, 2025 08:59
@jrfnl
Copy link
Member Author

jrfnl commented Mar 23, 2025

Rebased without changes to get rid of imaginary merge conflict.

@jrfnl jrfnl modified the milestones: 3.x Last, 3.13.0 Apr 13, 2025
This format was (soft) deprecated in PHPCS 3.3.0 (June 2018) and it is expected that most rulesets will have been updated.

With the new "error handling" functionality in the Ruleset class in place (PR 857), the old format can now be hard deprecated to make users who haven't updated their rulesets yet, aware of the upcoming removal of support for the old array format.

Refs:
* https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/3.3.0
* squizlabs/PHP_CodeSniffer 1665

Closes 693
@jrfnl jrfnl force-pushed the feature/693-sq1665-ruleset-deprecate-use-of-old-array-format branch from f63aa0c to e725729 Compare April 14, 2025 08:45
@jrfnl
Copy link
Member Author

jrfnl commented Apr 14, 2025

Rebased without changes before merging.

@jrfnl jrfnl merged commit 02cc5cd into master Apr 14, 2025
61 checks passed
@jrfnl jrfnl deleted the feature/693-sq1665-ruleset-deprecate-use-of-old-array-format branch April 14, 2025 09:38
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.

Last 3.x minor | Hard deprecate old-style setting of array properties
2 participants