-
Notifications
You must be signed in to change notification settings - Fork 112
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
Fixing HTTP status code definition #105
Conversation
Best would be to mark those constants as deprecated and directly use |
Thanks @Spomky, done. |
Any news on getting this merged? It seems to fix it... |
The |
@GuilhemN will it be merged in the near future? |
@recons same answer. This is not ready to be merged. Please submit a corrected PR if you want it to go faster. |
@GuilhemN Thanks for the comment. I've updated the PR. |
@SebScoFr you need to update required composer php version and .travis.yml also |
Should be all good now |
Great, thank you @SebScoFr :) |
In oauth2-php/lib/OAuth2.php, status code should be changed from
to
The reason for that is that the lib now fails with SF4 with
Notice: A non well formed numeric value encountered
This happens here, oauth2-php/lib/OAuth2ServerException.php
And Symfony Response class is expecting this
$status
must be a well-formed int.EDIT: I followed @Spomky suggestion and updated the PR.