Skip to content

Commit 4925236

Browse files
committed
minor #14630 [Console] Added Invalid Constant (TheGarious)
This PR was merged into the 5.3-dev branch. Discussion ---------- [Console] Added Invalid Constant <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Fixes #14622 Commits ------- 8982867 Added Invalid Constant
2 parents 893cedd + 8982867 commit 4925236

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)