-
Notifications
You must be signed in to change notification settings - Fork 10
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
PHPCS Move strict_types to seperate lines #61
PHPCS Move strict_types to seperate lines #61
Conversation
bc06c60
to
297aa44
Compare
Drop the declaration to a new line and PHPCS will be happy. You can also run |
You're going to be gobbling up legitimate errors here. I think that the interface should deal with a 500 response, rather than just removing the error in this one place. Other errors thrown (resulting in 500s) are going to have the same problem as described in silverstripe/silverstripe-mfa#378. |
a) What are legitimate errors? b) What is "the interface"? (Sorry I'm not too familiar with this module) |
297aa44
to
6981683
Compare
So the interface would be the thing that dispatches a request, and shows a spinner while it waits for the response. That should be updated to handle 500s. I don't know what the 500 error is here, but you're catching |
I was being a little terse there, it's actually returning a |
@ScopeyNZ OK I think I have a corresponding PR that does this for 429 on the mfa module - silverstripe/silverstripe-mfa#401 - so would it work if we close this PR and update the other PR to handle 500? |
Sound good to me. In fact, you could probably just fill in the "default" case in that PR with an "unknown error" message. |
6981683
to
fac4380
Compare
fac4380
to
bc738a4
Compare
@ScopeyNZ OK have removed the 500 logic from this PR. I've kept this PR open to just fix up the PHPCS issues |
Fix up PHPCS errors
This PR, was originally a fix for silverstripe/silverstripe-mfa#378, though have moved logic to https://github.com/silverstripe/silverstripe-mfa/pull/401/files instead