Skip to content

Squiz/FunctionDeclarationArgumentSpacing: fix typo in SpacingAfterVis[i]bility error code #1136

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 Jun 17, 2025

Description

Follow up on #792, related to #1135

The SpacingAfterVis[i]bility error code was introduced in v 3.12.0 (March this year) for constructor property promotion. The SpacingAfterSetVis[i]bility error code was introduced in v 3.13.1 (this month) for constructor property promotion with asym visibility.

Both contained the same typo.

PR #1135 fixes the asym error code and will be included in PHPCS 3.13.2.

This commit now fixes the non-asym error code and will be included in PHPCS 4.0.0.

Suggested changelog entry

Changed: Squiz.Functions.FunctionDeclarationArgumentSpacing: the SpacingAfterVisbility error code to SpacingAfterVisibility

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
    • This change is only breaking for integrators, not for external standards or end-users.
  • Documentation improvement

…s[i]bility` error code

Follow up on #792, related to #1135

The `SpacingAfterVis[i]bility` error code was introduced in v 3.12.0 (March this year) for constructor property promotion.
The `SpacingAfterSetVis[i]bility` error code was introduced in v 3.13.1 (this month) for constructor property promotion with asym visibility.

Both contained the same typo.

PR 1135 fixes the asym error code and will be included in PHPCS 3.13.2.

This commit now fixes the non-asym error code and will be included in PHPCS 4.0.0.
@jrfnl jrfnl added this to the 4.0.0 milestone Jun 17, 2025
@jrfnl jrfnl merged commit 62bea13 into 4.x Jun 17, 2025
112 of 114 checks passed
@jrfnl jrfnl deleted the phpcs-4.0/feature/squiz-functiondeclarationargumentspacing-fix-errorcode branch June 17, 2025 14:02
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.

1 participant