Commit f7d9701
committed
bug #25893 [Console] Fix hasParameterOption / getParameterOption when used with multiple flags (greg-1-anderson)
This PR was merged into the 2.7 branch.
Discussion
----------
[Console] Fix hasParameterOption / getParameterOption when used with multiple flags
| Q | A
| ------------- | ---
| Branch? | 2.7
| Bug fix? | yes
| New feature? | no
| BC breaks? | no (Fixes BC break in #24987)
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #25825
| License | MIT
| Doc PR | n/a
Proposed resolution to #25825:
- Back out #24987
- Fix getParameterOption for short options with values, e.g. `-edev`
Commits
-------
35f98e2 Follow-on to #25825: Fix edge case in getParameterOption.File tree
Expand file treeCollapse file tree
3 files changed
+49
-6
lines changedOpen diff view settings
Filter options
- src/Symfony/Component/Console
- Input
- Tests/Input
Expand file treeCollapse file tree
3 files changed
+49
-6
lines changedOpen diff view settings
Collapse file
src/Symfony/Component/Console/Input/ArgvInput.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Input/ArgvInput.php+13-6Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
279 | 279 | |
280 | 280 | |
281 | 281 | |
282 | | - |
| 282 | + |
| 283 | + |
| 284 | + |
| 285 | + |
| 286 | + |
283 | 287 | |
284 | 288 | |
285 | 289 | |
| ||
300 | 304 | |
301 | 305 | |
302 | 306 | |
303 | | - |
304 | | - |
305 | | - |
306 | | - |
307 | | - |
| 307 | + |
308 | 308 | |
309 | 309 | |
| 310 | + |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
310 | 317 | |
311 | 318 | |
312 | 319 | |
|
Collapse file
src/Symfony/Component/Console/Input/InputInterface.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Input/InputInterface.php+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
30 | 30 | |
31 | 31 | |
32 | 32 | |
| 33 | + |
| 34 | + |
33 | 35 | |
34 | 36 | |
35 | 37 | |
| ||
42 | 44 | |
43 | 45 | |
44 | 46 | |
| 47 | + |
| 48 | + |
45 | 49 | |
46 | 50 | |
47 | 51 | |
|
Collapse file
src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php+32Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
296 | 296 | |
297 | 297 | |
298 | 298 | |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
299 | 303 | |
300 | 304 | |
301 | 305 | |
| ||
306 | 310 | |
307 | 311 | |
308 | 312 | |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
309 | 340 | |
310 | 341 | |
311 | 342 | |
| ||
327 | 358 | |
328 | 359 | |
329 | 360 | |
| 361 | + |
330 | 362 | |
331 | 363 | |
332 | 364 | |
|
0 commit comments