We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With the following code:
<?php namespace App\Nova; class Song { public function fields(Request $request): array { return [ Url::make('View Song', fn($song) => $song->url()) ->onlyOnDetail(), new Panel('Information', [ Text::make('Title') ]), ]; } }
I get this output:
phpcs -s test.php --standard=PSR12 FILE: /Users/adriaan/test.php ---------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------------- 15 | ERROR | [x] Line indented incorrectly; expected at least 16 spaces, found 12 | | (Generic.WhiteSpace.ScopeIndent.Incorrect) ---------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------- Time: 53ms; Memory: 6MB
When I remove the method call after the arrow function (->onlyOnDetail()), the error goes away.
->onlyOnDetail()
The text was updated successfully, but these errors were encountered:
Fixed bug #2849 : Generic.WhiteSpace.ScopeIndent false positive with …
fbf67ef
…arrow function inside array
077ebab
Thanks for reporting this. The fix will be in 3.5.5.
Sorry, something went wrong.
Fixed bug squizlabs#2849 : Generic.WhiteSpace.ScopeIndent false posit…
39c965b
…ive with arrow function inside array
No branches or pull requests
With the following code:
I get this output:
When I remove the method call after the arrow function (
->onlyOnDetail()
), the error goes away.The text was updated successfully, but these errors were encountered: