Skip to content

Conversation

@Sutharsan
Copy link
Contributor

Fixes #3295 by limiting the remapping to the first argument (properly).

@Sutharsan Sutharsan changed the title Fix argument remapping. It should limit remapping to the first argument. Fix argument remapping. Limit remapping to first argument. Jan 26, 2018
@weitzman
Copy link
Member

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

@greg-1-anderson
Copy link
Member

If we're going to call this fixed, it would be helpful to have a failing test that passes when the fix is applied.

@Sutharsan
Copy link
Contributor Author

@weitzman not consistenly wrong, no. See line 50 (old code) that uses correct spelling $sawCommand = true;. Therefore $sawCommmand (tripple m) does not get flagged.

@Sutharsan
Copy link
Contributor Author

Sutharsan commented Jan 26, 2018

Minimal unittest added.


namespace Unish;

use \Drush\Preflight\argsRemapper;
Copy link
Member

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'.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Sutharsan
Copy link
Contributor Author

Done

@weitzman weitzman merged commit fa81aff into drush-ops:master Jan 29, 2018
@Sutharsan
Copy link
Contributor Author

Sutharsan commented Jan 29, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants