Empty shortcut check in the constructor
This commit is contained in:
parent
cf9039e88b
commit
2c19b3c7e5
@ -58,6 +58,10 @@ class InputOption
|
||||
if ('-' === $shortcut[0]) {
|
||||
$shortcut = substr($shortcut, 1);
|
||||
}
|
||||
|
||||
if (empty($shortcut)) {
|
||||
$shortcut = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (null === $mode) {
|
||||
|
Reference in New Issue
Block a user