Skip to content

Commit 185e886

Browse files
committed
minor symfony#7363 Document that you can't pass empty strings to console options (javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Document that you can't pass empty strings to console options Related to symfony/symfony#21215 Commits ------- 9666907 Document that you can't pass empty strings to console options
2 parents 402b96f + 9666907 commit 185e886

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

console/input.rst

+4
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,7 @@ You can combine ``VALUE_IS_ARRAY`` with ``VALUE_REQUIRED`` or
206206
when the option was used without a value (``command --language``) or when
207207
it wasn't used at all (``command``). In both cases, the value retrieved for
208208
the option will be ``null``.
209+
210+
Similarly, due to a PHP limitation, there is no way to pass an empty string
211+
as the value of an option. In ``command --prefix`` and ``command --prefix=''``
212+
cases, the value of the ``prefix`` option will be ``null``.

0 commit comments

Comments
 (0)