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
I just tested a fix in dev-master (4.8.0) and noticed a new bug in SlevomatCodingStandard.PHP.UselessParentheses.UselessParentheses.
SlevomatCodingStandard.PHP.UselessParentheses.UselessParentheses
Before:
$response = (new Response()) ->withStatus(200) ->withAddedHeader('Content-Type', 'text/plain');
After:
$response = new Response() // <--- Removed parentheses causes PHP Parse error: ->withStatus(200) // syntax error, unexpected '->' (T_OBJECT_OPERATOR) ->withAddedHeader('Content-Type', 'text/plain');
The text was updated successfully, but these errors were encountered:
Thank you for your report.
Fixed in 0ca9277
Sorry, something went wrong.
Wow... you are fast :)
Confirmed that it's fixed. Thanx.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
I just tested a fix in dev-master (4.8.0) and noticed a new bug in
SlevomatCodingStandard.PHP.UselessParentheses.UselessParentheses
.Before:
After:
The text was updated successfully, but these errors were encountered: