Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpFoundation] add @throws to getPayload#50492

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:6.3fromwiseguy1394:issue-50490
May 31, 2023
Merged

[HttpFoundation] add @throws to getPayload#50492

nicolas-grekas merged 1 commit intosymfony:6.3fromwiseguy1394:issue-50490
May 31, 2023

Conversation

@wiseguy1394
Copy link
Contributor

QA
Branch?6.3
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#50490
LicenseMIT

Fixes#50490

@carsonbotcarsonbot added this to the6.4 milestoneMay 31, 2023
@wiseguy1394wiseguy1394 changed the base branch from6.4 to6.3May 31, 2023 08:26
@nicolas-grekasnicolas-grekas modified the milestones:6.4,6.3May 31, 2023
@symfonysymfony deleted a comment fromcarsonbotMay 31, 2023
@nicolas-grekas
Copy link
Member

Thank you@wiseguy1394.

wiseguy1394 reacted with thumbs up emoji

@nicolas-grekasnicolas-grekas merged commit7e7adcc intosymfony:6.3May 31, 2023
/**
* Gets the decoded form or json request body.
*
* @throws JsonException When the body cannot be decoded to an array
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

should beRequestExceptionInterface IMHO

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Why not exact JsonException?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@wiseguy1394 catching the general case seems more future proof

but no strong opionion, i dont believe in@throws bookkeeping anyway :)

@nicolas-grekas
Copy link
Member

Behavior changed in#50730 for empty contents.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+1 more reviewer

@ro0NLro0NLro0NL left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

6.3

Development

Successfully merging this pull request may close these issues.

[HttpFoundation] getPayload throws JsonException if request body is empty.

4 participants

@wiseguy1394@nicolas-grekas@ro0NL@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp