Skip to content

Commit 639be4b

Browse files
Tim Stampweaverryan
Tim Stamp
authored andcommitted
Renaming constraint rst files to Is* to preserve edit history
1 parent b2a9a6c commit 639be4b

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

reference/constraints.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Validation Constraints Reference
88
constraints/NotBlank
99
constraints/Blank
1010
constraints/NotNull
11-
constraints/Null
12-
constraints/True
13-
constraints/False
11+
constraints/IsNull
12+
constraints/IsTrue
13+
constraints/IsFalse
1414
constraints/Type
1515

1616
constraints/Email

reference/constraints/False.rst renamed to reference/constraints/IsFalse.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
False
22
=====
33

4+
.. caution::
5+
6+
The ``False`` constraint is deprecated since Symfony 2.7
7+
and will be removed in Symfony 3.0. Use the ``IsFalse`` constraint instead.
8+
49
Validates that a value is ``false``. Specifically, this checks to see if
510
the value is exactly ``false``, exactly the integer ``0``, or exactly the
611
string "``0``".

reference/constraints/Null.rst renamed to reference/constraints/IsNull.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Null
22
====
33

4+
.. caution::
5+
6+
The ``Null`` constraint is deprecated since Symfony 2.7
7+
and will be removed in Symfony 3.0. Use the ``IsNull`` constraint instead.
8+
49
Validates that a value is exactly equal to ``null``. To force that a property
510
is simply blank (blank string or ``null``), see the :doc:`/reference/constraints/Blank`
611
constraint. To ensure that a property is not null, see :doc:`/reference/constraints/NotNull`.

reference/constraints/True.rst renamed to reference/constraints/IsTrue.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
True
22
====
33

4+
.. caution::
5+
6+
The ``True`` constraint is deprecated since Symfony 2.7
7+
and will be removed in Symfony 3.0. Use the ``IsTrue`` constraint instead.
8+
49
Validates that a value is ``true``. Specifically, this checks to see if
510
the value is exactly ``true``, exactly the integer ``1``, or exactly the
611
string "``1``".

0 commit comments

Comments
 (0)