File tree 2 files changed +0
-11
lines changed
src/Symfony/Component/Console
2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -282,14 +282,6 @@ public function hasParameterOption($values)
282
282
if ($ token === $ value || 0 === strpos ($ token , $ value .'= ' )) {
283
283
return true ;
284
284
}
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
- }
293
285
}
294
286
}
295
287
Original file line number Diff line number Diff line change @@ -296,9 +296,6 @@ public function testHasParameterOption()
296
296
$ input = new ArgvInput (array ('cli.php ' , '-f ' , 'foo ' ));
297
297
$ this ->assertTrue ($ input ->hasParameterOption ('-f ' ), '->hasParameterOption() returns true if the given short option is in the raw input ' );
298
298
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
-
302
299
$ input = new ArgvInput (array ('cli.php ' , '--foo ' , 'foo ' ));
303
300
$ this ->assertTrue ($ input ->hasParameterOption ('--foo ' ), '->hasParameterOption() returns true if the given short option is in the raw input ' );
304
301
You can’t perform that action at this time.
0 commit comments