-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix argument remapping. Limit remapping to first argument. #3326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix argument remapping. Limit remapping to first argument. #3326
Conversation
|
Thanks ... The old code had consistently wrong spelling or no? if yes, then I dont see how a spelling fix can eliminate the bug. I cant find the actual spelling inconsistency except for in Doxygen |
|
If we're going to call this fixed, it would be helpful to have a failing test that passes when the fix is applied. |
|
@weitzman not consistenly wrong, no. See line 50 (old code) that uses correct spelling |
|
Minimal unittest added. |
tests/ArgsRemapperTest.php
Outdated
|
|
||
| namespace Unish; | ||
|
|
||
| use \Drush\Preflight\argsRemapper; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capital A in class name, not 'a'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
Done |
|
:) Thanks
|
Fixes #3295 by limiting the remapping to the first argument (properly).