Skip to content
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

IsReferenceTest: fix invalid test case #574

Merged
merged 1 commit into from
Mar 31, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Mar 31, 2024

Sister-PR to PHPCSStandards/PHP_CodeSniffer#426

Closures use clauses only take plain variables, not complex variables, like properties or array keys.

In other words, this test case as-is, was a parse error.

For the purposes of this test, it makes no difference what type of variable is passed, so let's fix the test.

Sister-PR to PHPCSStandards/PHP_CodeSniffer 426

Closures use clauses only take plain variables, not complex variables, like properties or array keys.

In other words, this test case as-is, was a parse error.

For the purposes of this test, it makes no difference what type of variable is passed, so let's fix the test.
@jrfnl jrfnl added this to the 1.0.11 milestone Mar 31, 2024
@jrfnl jrfnl enabled auto-merge March 31, 2024 13:10
@jrfnl jrfnl merged commit 45e0721 into develop Mar 31, 2024
54 checks passed
@jrfnl jrfnl deleted the feature/isreferencetest-fix-invalid-testcase branch March 31, 2024 13:14
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