Skip to content

Commit 78eaf54

Browse files
committed
Merge remote-tracking branch 'upstream/5.x' into 5.x
* upstream/5.x: Tweak Added Invalid Constant
2 parents a45d678 + c26c56f commit 78eaf54

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 to indicate incorrect command usage; e.g. invalid options
62+
// or missing arguments (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`` constant was introduced in Symfony 5.3
75+
6876
Configuring the Command
6977
-----------------------
7078

0 commit comments

Comments
 (0)