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

[Validator] deprecate implicit constraint option names in YAML/XML mapping files#61791

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.4fromxabbuh:pr-61617
Sep 24, 2025

Conversation

@xabbuh
Copy link
Member

@xabbuhxabbuh commentedSep 19, 2025
edited
Loading

QA
Branch?7.4
Bug fix?no
New feature?no
Deprecations?yes
Issuessee#61617 (comment)
LicenseMIT

@xabbuh
Copy link
MemberAuthor

the failures look related

Status: Needs Work

Copy link
Member

@GromNaNGromNaN left a comment

Choose a reason for hiding this comment

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

Could you also add tests for the deprecated feature?

xabbuh reacted with thumbs up emoji
@xabbuhxabbuhforce-pushed thepr-61617 branch 2 times, most recently from53ed983 tof6a14b0CompareSeptember 24, 2025 11:41
@xabbuh
Copy link
MemberAuthor

@GromNaN done

callback:[Symfony\Component\Validator\Tests\Fixtures\CallbackClass, callback]
```
After:

Choose a reason for hiding this comment

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

before /after are inverted, isn't it?


```xml
<classname="Symfony\Component\Validator\Tests\Fixtures\NestedAttribute\Entity">
<optionname="callback">
Copy link
Member

Choose a reason for hiding this comment

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

This is missing the<constraint name="Callback"> tag

```yaml
Symfony\Component\Validator\Tests\Fixtures\NestedAttribute\Entity:
constraints:
-Callback:validateMeStatic
Copy link
Member

Choose a reason for hiding this comment

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

this is swapping the before and after cases


```xml
<classname="Symfony\Component\Validator\Tests\Fixtures\NestedAttribute\Entity">
<optionname="callback">
Copy link
Member

Choose a reason for hiding this comment

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

This is missing the<constraint name="Callback"> tag

@xabbuh
Copy link
MemberAuthor

changelog and upgrade file fixed

@nicolas-grekas
Copy link
Member

Thank you@xabbuh.

@nicolas-grekasnicolas-grekas merged commitce54488 intosymfony:7.4Sep 24, 2025
11 of 12 checks passed
@xabbuhxabbuh deleted the pr-61617 branchSeptember 24, 2025 17:29
This was referencedOct 27, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@stofstofstof left review comments

@GromNaNGromNaNGromNaN approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

7.4

Development

Successfully merging this pull request may close these issues.

5 participants

@xabbuh@nicolas-grekas@GromNaN@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp