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

Consistently useAssert\... when referring to assertions#21620

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

Open
mpdude wants to merge1 commit intosymfony:7.3
base:7.3
Choose a base branch
Loading
frommpdude:assert-consistency

Conversation

@mpdude
Copy link
Contributor

@mpdudempdude commentedDec 3, 2025
edited
Loading

I noticed a slight inconsistency in the docs when showing examples of usingConstraint classes. In some examples, the class isused and shown with the short class name. In other cases, theSymfony\Component\Validator\Constraints namespace is used asAssert, and references being made asAssert\NotBlank and similar.

Personally, I like theAssert\ prefix, since it triggers the "ah, that's a constraint" wiring in my head, but I don't mind. Generally, I'd prefer consistency, since I noticed that this caused confusion in my team.

Additionally, this PR fixes a few places where we are still showing the use of array-based options instead of named arguments, a change that was made in 7.3.

@carsonbotcarsonbot added this to the7.3 milestoneDec 3, 2025
@carsonbotcarsonbot changed the titleConsistently useAssert\... when referring to assertions Consistently useAssert\... when referring to assertionsDec 3, 2025
@mpdude
Copy link
ContributorAuthor

Seems the code block checker does not support namespace-based imports, only direct class references?

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

Reviewers

@xabbuhxabbuhAwaiting requested review from xabbuhxabbuh is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

7.3

Development

Successfully merging this pull request may close these issues.

2 participants

@mpdude@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp