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

Conversation

lukenm
Copy link
Contributor

@lukenm lukenm commented Dec 31, 2012

Multiple calls to setUse() with the same parameters was leading to multiple identical use statements being inserted in the generated file. This was causing a PHP Fatal error 'name is already in use' in the generated code.

This patch overcomes this by first testing whether the 'use' has been added to the $uses array. If it has, then it ignores it (doesn't add it again).

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.

None yet

2 participants