Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b287c25 commit bf8cbbdCopy full SHA for bf8cbbd
src/Symfony/Component/Console/Input/InputOption.php
@@ -81,7 +81,7 @@ public function __construct(string $name, $shortcut = null, int $mode = null, st
81
$shortcuts = array_filter($shortcuts, 'strlen');
82
$shortcut = implode('|', $shortcuts);
83
84
- if ($shortcut === '') {
+ if ('' === $shortcut) {
85
throw new InvalidArgumentException('An option shortcut cannot be empty.');
86
}
87
0 commit comments