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

Closed
wants to merge 1 commit into
from

2 participants

@lukenm

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 weierophinney added a commit that referenced this pull request Jan 4, 2013
@weierophinney weierophinney Merge branch 'hotfix/3318' into develop
Forward port #3318
c3dbbf5
@weierophinney weierophinney was assigned Jan 4, 2013
@weierophinney weierophinney added a commit that closed this pull request Jan 4, 2013
@weierophinney weierophinney Merge branch 'hotfix/3318'
Close #3318
986bcdf
@ghost Unknown pushed a commit that referenced this pull request Jul 14, 2013
@weierophinney weierophinney Merge branch 'hotfix/3318'
Close #3318
8b35aec
@ghost Unknown pushed a commit that referenced this pull request Jul 14, 2013
@weierophinney weierophinney Merge branch 'hotfix/3318' into develop
Forward port #3318
75c060e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment