-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Can't satisfy Squiz.Arrays.ArrayDeclaration.ValueNoNewline with callable value #3112
Milestone
Comments
This should be fixed by #3061. |
Tried with dev-master but the issue seems to still exist. |
Tried with master and can confirm there error no longer appears. Test file:
PHPCS 3.5.6:
Master branch:
@simPod What are you seeing? |
I see, just checked. Try this: yield [
static fn () : string => '',
];
yield [
static function () : string {
return '';
},
]; arrow function fails |
gsherwood
added a commit
that referenced
this issue
Sep 24, 2020
gsherwood
added a commit
that referenced
this issue
Sep 24, 2020
@simPod I've pushed an additional fix for the arrow function support. Are you able to try again? |
Wrks, thanks a lot! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Can't satisfy sniff when callable is within multiline array
Code sample
The value is on a new line.
This can't be done either because of Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: