Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 10, 2025

Description

While reserved keywords can be used as parameter names without issue, it makes for very confusing code when the PHP 8.0 "named arguments in function calls" feature would be used.

With this in mind, any such parameters are now renamed.

Suggested changelog entry

N/A as named parameters are not currently supported in the project

Related issues/external references

Loosely related to #392

While reserved keywords can be used as parameter names without issue, it makes for very confusing code when the PHP 8.0 "named arguments in function calls" feature would be used.

With this in mind, any such a parameters are now renamed.

Loosely related to 392
@jrfnl jrfnl added this to the 4.0.0 milestone Sep 10, 2025
@jrfnl jrfnl merged commit b82e30c into 4.x Sep 10, 2025
77 checks passed
@jrfnl jrfnl deleted the phpcs-4.x/feature/cs-qa-no-reserved-keywords-as-param-names branch September 10, 2025 21:46
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