Skip to content

[Validator] BicValidator add strict mode to validate bics in strict mode #19938

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

maxbeckers
Copy link
Contributor

Add docs for the mode of the bic validator.

Related issue #19937.

Options are strict (default behavior) and case-insensitive (new option to transform the input to upper case before validation)

Comment on lines 138 to 144
(e.g. ``BIC::VALIDATION_MODE_CASE_INSENSITIVE``).

.. _`Business Identifier Code (BIC)`: https://en.wikipedia.org/wiki/Business_Identifier_Code
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
(e.g. ``BIC::VALIDATION_MODE_CASE_INSENSITIVE``).
.. _`Business Identifier Code (BIC)`: https://en.wikipedia.org/wiki/Business_Identifier_Code
(e.g. ``BIC::VALIDATION_MODE_CASE_INSENSITIVE``).
.. versionadded:: 7.2
The ``mode`` option was introduced in Symfony 7.2.
.. _`Business Identifier Code (BIC)`: https://en.wikipedia.org/wiki/Business_Identifier_Code

@maxbeckers maxbeckers force-pushed the patch-19937_bic-validator branch from ccda9b2 to dc23e2e Compare June 4, 2024 10:01
@javiereguiluz javiereguiluz merged commit 8b4ebcf into symfony:7.2 Jun 5, 2024
3 checks passed
@javiereguiluz
Copy link
Member

Thanks Max!

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.

4 participants