Skip to content

Commit 8982867

Browse files
committed
Added Invalid Constant
1 parent 0ef0625 commit 8982867

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

console.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ want a command to create a user::
5757
// or return this if some error happened during the execution
5858
// (it's equivalent to returning int(1))
5959
// return Command::FAILURE;
60+
61+
// or return this if there was invalid value during the execution
62+
// (it's equivalent to returning int(2))
63+
// return Command::INVALID
6064
}
6165
}
6266

@@ -65,6 +69,10 @@ want a command to create a user::
6569
The ``Command::SUCCESS`` and ``Command::FAILURE`` constants were introduced
6670
in Symfony 5.1.
6771

72+
.. versionadded:: 5.3
73+
74+
The ``Command::INVALID`` constants was introduced in Symfony 5.3
75+
6876
Configuring the Command
6977
-----------------------
7078

0 commit comments

Comments
 (0)