Skip to content
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 collision of Elastica\Type and Elastica\Filter\Type in \Elastica\Filter\Ids #438

Merged
merged 3 commits into from
Aug 8, 2013
Merged

Fix collision of Elastica\Type and Elastica\Filter\Type in \Elastica\Filter\Ids #438

merged 3 commits into from
Aug 8, 2013

Conversation

mrzard
Copy link

@mrzard mrzard commented Aug 7, 2013

Noticed that when using Elastica\Filter\Type this error shows: Cannot use Elastica\Type as Type because the name is already in use.

This fixes the collision in Elastica\Filter\Ids between Elastica\Type and Elastica\Filter\Type

If it's better that we switch to Elastica\Filter insted of use as ElasticaFilter, tell me and I'll resubmit the PR.

Cheers

@ruflin
Copy link
Owner

ruflin commented Aug 7, 2013

Don't see an advantage of the one over the other. Can you add a small test for this so we make sure someone does not change it back in the future again?

@mrzard
Copy link
Author

mrzard commented Aug 8, 2013

Hi, just done so, the test is kind of silly but does the work.

@ruflin
Copy link
Owner

ruflin commented Aug 8, 2013

Agree, but it works :-) Probably it needs a short comment in the test, why this test is here ...

ruflin added a commit that referenced this pull request Aug 8, 2013
Fix collision of Elastica\Type and Elastica\Filter\Type in \Elastica\Filter\Ids
@ruflin ruflin merged commit e600c3e into ruflin:master Aug 8, 2013
@ruflin
Copy link
Owner

ruflin commented Aug 8, 2013

Thx merged.

@mrzard
Copy link
Author

mrzard commented Aug 8, 2013

No problem! Anytime :)

2013/8/8 Nicolas Ruflin notifications@github.com

Thx merged.


Reply to this email directly or view it on GitHubhttps://github.com//pull/438#issuecomment-22309876
.

simon-n pushed a commit to simon-n/Elastica that referenced this pull request May 30, 2016
simon-n pushed a commit to simon-n/Elastica that referenced this pull request May 30, 2016
merk added a commit that referenced this pull request May 30, 2016
adapted Type namespace collision fix for Query\Ids, see PR #438
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.

2 participants