8000 [Console] Allow 'false' as a $shortcut in InputOption.php · symfony/symfony@57ce3bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 57ce3bb

Browse files
[Console] Allow 'false' as a $shortcut in InputOption.php
This change is needed for laravel 8.x installation to allow running kernel and module based architecture. Right now our deployments are suddenly stopped since morning all saying "An option shortcut cannot be empty" and root cause for this is $shortcut is coming as false from laravel modules feature library.
1 parent e111a54 commit 57ce3bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Input/InputOption.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function __construct(string $name, $shortcut = null, ?int $mode = null, s
6969
throw new InvalidArgumentException('An option name cannot be empty.');
7070
}
7171

72-
if ('' === $shortcut || [] === $shortcut) {
72+
if ('' === $shortcut || [] === $shortcut || false === $shortcut) {
7373
$shortcut = null;
7474
}
7575

0 commit comments

Comments
 (0)
0