File tree 2 files changed +0
-5
lines changed
src/Symfony/Component/Console
2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -284,8 +284,6 @@ public function hasParameterOption($values)
284
284
}
285
285
286
286
if (0 === strpos ($ token , '- ' ) && 0 !== strpos ($ token , '-- ' )) {
287
- $ noValue = explode ('= ' , $ token );
288
- $ token = $ noValue [0 ];
289
287
$ searchableToken = str_replace ('- ' , '' , $ token );
290
288
$ searchableValue = str_replace ('- ' , '' , $ value );
291
289
if ('' !== $ searchableToken && '' !== $ searchableValue && false !== strpos ($ searchableToken , $ searchableValue )) {
Original file line number Diff line number Diff line change @@ -299,9 +299,6 @@ public function testHasParameterOption()
299
299
$ input = new ArgvInput (array ('cli.php ' , '-fh ' ));
300
300
$ this ->assertTrue ($ input ->hasParameterOption ('-fh ' ), '->hasParameterOption() returns true if the given short option is in the raw input ' );
301
301
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
-
305
302
$ input = new ArgvInput (array ('cli.php ' , '--foo ' , 'foo ' ));
306
303
$ this ->assertTrue ($ input ->hasParameterOption ('--foo ' ), '->hasParameterOption() returns true if the given short option is in the raw input ' );
307
304
You can’t perform that action at this time.
0 commit comments