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

[Validation] Adding#[\Override] attribute#21646

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
ThomasLandauer wants to merge1 commit intosymfony:8.0
base:8.0
Choose a base branch
Loading
fromThomasLandauer:patch-26

Conversation

@ThomasLandauer
Copy link
Contributor

@ThomasLandauerThomasLandauer commentedDec 18, 2025
edited
Loading

Page:https://symfony.com/doc/current/validation/custom_constraint.html#creating-the-validator-itself

Reason: Psalm is complaining aboutMissingOverrideAttribute - don't know if you want to have it in the docs.

Targeting 8.0 branch, cause#[\Override] was introduced in PHP 8.3, and all lower Symfony versions allow lower PHP versions.

Page:https://symfony.com/doc/current/validation/custom_constraint.html#creating-the-validator-itselfPsalm is complaining about this - don't know if you want to have it in the docs.Targeting 8.0 branch, cause ``#[\Override]`  was introduced in PHP 8.3, and all lower Symfony versions allow lower PHP versions.
@ThomasLandauer
Copy link
ContributorAuthor

Could be done on form methods (buildForm() et al) too.


class ContainsAlphanumericValidator extends ConstraintValidator
{
#[\Override]
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't use this attribute in the symfony codebase

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

Reviewers

@OskarStarkOskarStarkOskarStark left review comments

@xabbuhxabbuhAwaiting requested review from xabbuhxabbuh is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ThomasLandauer@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp