Skip to content

Conversation

@ThomasLandauer
Copy link
Contributor

@ThomasLandauer ThomasLandauer commented Dec 18, 2025

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

Reason: Psalm is complaining about MissingOverrideAttribute - 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-itself

Psalm 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
Contributor Author

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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants