8000 Revert "bug #25487 [Console] Fix a bug when passing a letter that cou… · symfony/symfony@667b929 · GitHub
[go: up one dir, main page]

Skip to content

Commit 667b929

Browse files
committed
Revert "bug #25487 [Console] Fix a bug when passing a letter that could be an alias (Simperfit)"
This reverts commit ccc9367, reversing changes made to e77545a.
1 parent 554bc24 commit 667b929

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,6 @@ public function hasParameterOption($values)
284284
}
285285

286286
if (0 === strpos($token, '-') && 0 !== strpos($token, '--')) {
287-
$noValue = explode('=', $token);
288-
$token = $noValue[0];
289287
$searchableToken = str_replace('-', '', $token);
290288
$searchableValue = str_replace('-', '', $value);
291289
if ('' !== $searchableToken && '' !== $searchableValue && false !== strpos($searchableToken, $searchableValue)) {

src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,6 @@ public function testHasParameterOption()
299299
$input = new ArgvInput(array('cli.php', '-fh'));
300300
$this->assertTrue($input->hasParameterOption('-fh'), '->hasParameterOption() returns true if the given short option is in the raw input');
301301

302-
$input = new ArgvInput(array('cli.php', '-e=test'));
303-
$this->assertFalse($input->hasParameterOption('-s'), '->hasParameterOption() returns true if the given short option is in the raw input');
304-
305302
$input = new ArgvInput(array('cli.php', '--foo', 'foo'));
306303
$this->assertTrue($input->hasParameterOption('--foo'), '->hasParameterOption() returns true if the given short option is in the raw input');
307304

0 commit comments

Comments
 (0)
0