Skip to content

Generic/NoSpaceAfterCast: removed deprecated sniff#980

Merged
jrfnl merged 1 commit into4.xfrom
phpcs-4.0/feature/sq-2234-generic-nospaceaftercast-remove-sniff
Apr 14, 2025
Merged

Generic/NoSpaceAfterCast: removed deprecated sniff#980
jrfnl merged 1 commit into4.xfrom
phpcs-4.0/feature/sq-2234-generic-nospaceaftercast-remove-sniff

Conversation

@jrfnl
Copy link
Copy Markdown
Member

@jrfnl jrfnl commented Apr 14, 2025

Description

This sniff was deprecated in PHPCS 3.4.0. Use the Generic.Formatting.SpaceAfterCast sniff with the $spacing property set to 0 instead.

Refs:

Suggested changelog entry

Removed:

  • The Generic.Formatting.NoSpaceAfterCast sniff.
    • Use the Generic.Formatting.SpaceAfterCast sniff instead with the $spacing property set to 0.

Related issues/external references

Related to #6

This sniff was deprecated in PHPCS 3.4.0. Use the `Generic.Formatting.SpaceAfterCast` sniff with the `$spacing` property set to `0` instead.

Refs:
* squizlabs/PHP_CodeSniffer 2234

Related to 6
@jrfnl jrfnl merged commit 5cf5e2d into 4.x Apr 14, 2025
54 checks passed
@jrfnl jrfnl deleted the phpcs-4.0/feature/sq-2234-generic-nospaceaftercast-remove-sniff branch April 14, 2025 15:11
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.

2 participants