Skip to content
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

Prefer static call to validate callback and use more precise exception #458

Merged
merged 1 commit into from
Jul 4, 2023
Merged

Prefer static call to validate callback and use more precise exception #458

merged 1 commit into from
Jul 4, 2023

Conversation

VincentLanglet
Copy link
Contributor

Hi @tobias-93,

I just noticed that

  • JsonpCallbackValidator::validate is static so doesn't require to instanciate a class
  • BadRequestHttpException should be preferred over HttpException for a 400 status

So I made the PR :)

@tobias-93 tobias-93 merged commit 9493cbd into FriendsOfSymfony:master Jul 4, 2023
@tobias-93
Copy link
Collaborator

Thanks @VincentLanglet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants