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

[Serializer] [ObjectNormalizer] Filter int when using FILTER_BOOL#59501

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:7.1fromDjordyKoert:handle-int-to-bool
Jan 17, 2025

Conversation

DjordyKoert
Copy link
Contributor

@DjordyKoertDjordyKoert commentedJan 14, 2025
edited by nicolas-grekas
Loading

QA
Branch?7.1
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix ...
LicenseMIT

Improves on#57541 to also allow numeric values1 and0 withFILTER_BOOL => true

Currently attempting to use the Serializer component to deserialize to deserialize a1 or0 result in the following error:

The type of the "booleanProperty" attribute for class "App\MyDTO" must be one of "bool" ("int" given).

@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "7.2" but it seems your PR description refers to branch "7.1 / 7.2".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

@nicolas-grekasnicolas-grekas modified the milestones:7.2,7.1Jan 17, 2025
@nicolas-grekas
Copy link
Member

Thank you@DjordyKoert.

DjordyKoert reacted with heart emoji

@nicolas-grekasnicolas-grekas merged commit717ca76 intosymfony:7.1Jan 17, 2025
4 of 11 checks passed
This was referencedJan 29, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dunglasdunglasAwaiting requested review from dunglasdunglas is a code owner

@xabbuhxabbuhAwaiting requested review from xabbuh

@lyrixxlyrixxAwaiting requested review from lyrixx

@ycerutoycerutoAwaiting requested review from yceruto

@welcoMatticwelcoMatticAwaiting requested review from welcoMattic

@kbondkbondAwaiting requested review from kbond

@chalasrchalasrAwaiting requested review from chalasr

@OskarStarkOskarStarkAwaiting requested review from OskarStark

@jderussejderusseAwaiting requested review from jderusse

Assignees
No one assigned
Projects
None yet
Milestone
7.1
Development

Successfully merging this pull request may close these issues.

3 participants
@DjordyKoert@carsonbot@nicolas-grekas

[8]ページ先頭

©2009-2025 Movatter.jp