8000 Revert "bug #24987 [Console] Fix global console flag when used in cha… · symfony/symfony@4f47bb7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f47bb7

Browse files
committed
Revert "bug #24987 [Console] Fix global console flag when used in chain (Simperfit)"
This reverts commit 9107fb0, reversing changes made to abe6e92.
1 parent 667b929 commit 4f47bb7

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,6 @@ public function hasParameterOption($values)
282282
if ($token === $value || 0 === strpos($token, $value.'=')) {
283283
return true;
284284
}
285-
286-
if (0 === strpos($token, '-') && 0 !== strpos($token, '--')) {
287-
$searchableToken = str_replace('-', '', $token);
288-
$searchableValue = str_replace('-', '', $value);
289-
if ('' !== $searchableToken && '' !== $searchableValue && false !== strpos($searchableToken, $searchableValue)) {
290-
return true;
291-
}
292-
}
293285
}
294286
}
295287

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

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

299-
$input = new ArgvInput(array('cli.php', '-fh'));
300-
$this->assertTrue($input->hasParameterOption('-fh'), '->hasParameterOption() returns true if the given short option is in the raw input');
301-
302299
$input = new ArgvInput(array('cli.php', '--foo', 'foo'));
303300
$this->assertTrue($input->hasParameterOption('--foo'), '->hasParameterOption() returns true if the given short option is in the raw input');
304301

0 commit comments

Comments
 (0)
0