Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fixed FileGenerator::setUses() to allow passing in array of strings. #3318

Conversation

lukenm
Copy link
Contributor

@lukenm lukenm commented Dec 31, 2012

This patch allows setUses() to be called with an array of string 'uses'. This makes it easier to call when the 'as' part is not needed.

In my use case I had an existing array of strings that I wanted to pass directly to setUses().

This patch actually allows mixing of strings (without the 'as') and arrays of the form array('use', 'as') in the array that's passed to setUses(). This is demonstrated in testSetUsesWithString().

weierophinney added a commit that referenced this pull request Jan 4, 2013
@ghost ghost assigned weierophinney Jan 4, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants