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

[Validator] Document the new notInRangeMessage option#11953

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

Merged
javiereguiluz merged 1 commit intosymfony:4.4fromLctrs:patch-1
Jul 12, 2019
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletionsreference/constraints/Range.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,6 +13,7 @@ Options - `groups`_
- `min`_
- `minMessage`_
- `minPropertyPath`_
- `notInRangeMessage`_
- `payload`_
Class :class:`Symfony\\Component\\Validator\\Constraints\\Range`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\RangeValidator`
Expand DownExpand Up@@ -433,3 +434,25 @@ with regard to the ``$startDate`` property of the same object, use

.. _`is_numeric`: https://php.net/manual/en/function.is-numeric.php
.. _`accepted by the DateTime constructor`: https://php.net/manual/en/datetime.formats.php

notInRangeMessage
~~~~~~~~~~~~~~~~~

**type**: ``string`` **default**: ``This value should be between {{ min }} and {{ max }}.``

.. versionadded:: 4.4

The ``notInRangeMessage`` option was introduced in Symfony 4.4.

The message that will be shown if the underlying value is less than the
`min`_ option and more than the `max`_ option.

You can use the following parameters in this message:

=============== ==============================================================
Parameter Description
=============== ==============================================================
``{{ max }}`` The upper limit
``{{ min }}`` The lower limit
``{{ value }}`` The current (invalid) value
=============== ==============================================================

[8]ページ先頭

©2009-2025 Movatter.jp