Skip to content

Commit

Permalink
Merge branch '7.1' into 7.2
Browse files Browse the repository at this point in the history
* 7.1:
  Minor reword
  [Validator] Add note to `version` option in `Cidr` constraint
  • Loading branch information
javiereguiluz committed Jan 9, 2025
2 parents 422ce06 + 5773975 commit 2c1f607
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions reference/constraints/Cidr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ Parameter Description
This determines exactly *how* the CIDR notation is validated and can take one
of :ref:`IP version ranges <reference-constraint-ip-version>`.

.. note::

The IP range checks (e.g., ``*_private``, ``*_reserved``) validate only the
IP address, not the entire netmask. To improve validation, you can set the
``{{ min }}`` value for the netmask. For example, the range ``9.0.0.0/6`` is
considered ``*_public``, but it also includes the ``10.0.0.0/8`` range, which
is categorized as ``*_private``.

.. versionadded:: 7.1

The support of all IP version ranges was introduced in Symfony 7.1.
Expand Down

0 comments on commit 2c1f607

Please sign in to comment.