8000 [Console] fix warning on PHP 7.4 · symfony/symfony@5f451e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f451e6

Browse files
rez1dent3nicolas-grekas
authored andcommitted
[Console] fix warning on PHP 7.4
1 parent 5c67a67 commit 5f451e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected function parse()
132132
}
133133
if (0 === strpos($key, '--')) {
134134
$this->addLongOption(substr($key, 2), $value);
135-
} elseif ('-' === $key[0]) {
135+
} elseif (0 === strpos($key, '-')) {
136136
$this->addShortOption(substr($key, 1), $value);
137137
} else {
138138
$this->addArgument($key, $value);

0 commit comments

Comments
 (0)
0