Skip to content

NewConstantArraysUsingDefine: add support for named parameters#1249

Merged
wimg merged 1 commit intodevelopfrom
feature/newconstantarraysusingdefine-support-named-params
Dec 4, 2020
Merged

NewConstantArraysUsingDefine: add support for named parameters#1249
wimg merged 1 commit intodevelopfrom
feature/newconstantarraysusingdefine-support-named-params

Conversation

@jrfnl
Copy link
Copy Markdown
Member

@jrfnl jrfnl commented Dec 2, 2020

PHPCSUtils 1.0.0-alpha4 will add support for named parameters.
Ref: PHPCSStandards/PHPCSUtils#235

To allow for this, any calls to PassedParameters::getParameter() to retrieve a parameter in a function call need to pass the name of the target parameter.

Within PHPCompatibility, this is the only sniff for which the tests would fail at the moment when used with PHPCSUtils alpha-4, so pre-eminently fixing this ahead of the release of PHPCSUtils 1.0.0-alpha4.

Adding unit tests for this change would break on alpha3 though, so I'm leaving those for a future PR once alpha4 has been released.

Loading
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