Skip to content

[Validator] Add ValidatorBuilder::enablePropertyMetadataExistenceCheck()#21997

Open
lacatoire wants to merge 3 commits intosymfony:8.1from
lacatoire:docs/validator-property-metadata-existence-check
Open

[Validator] Add ValidatorBuilder::enablePropertyMetadataExistenceCheck()#21997
lacatoire wants to merge 3 commits intosymfony:8.1from
lacatoire:docs/validator-property-metadata-existence-check

Conversation

@lacatoire
Copy link
Contributor

Fixes #21995

This documents:

When enabled, validateProperty() and validatePropertyValue() throw a ValidatorException if the given property has no metadata, instead of silently returning zero violations. This helps catch typos or renamed properties.

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