Skip to content

ext/standard: Throw a RequestParseBodyException instead of InvalidArgumentException #15468

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

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Aug 17, 2024

Especially as this exception is thrown when there isn't an issue with an argument

…umentException

Especially as this exception is thrown when there isn't an issue with an argument
@bukka
Copy link
Member

bukka commented Aug 18, 2024

I think it might make sense. @iluuu1994 do you know why you didn't choose to set that exception for this case?

@iluuu1994
Copy link
Member

iluuu1994 commented Aug 18, 2024

I believe it's because originally, the content type used to be an optional argument. At this point, RequestParseBodyException makes more sense.

@Girgias Girgias merged commit c6e1e30 into php:master Aug 18, 2024
10 checks passed
@Girgias Girgias deleted the request_parse_body_exception_type branch August 18, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants