Skip to content

Fix that two DirectoryResources with different patterns would be deduplicated #15718

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

Closed
wants to merge 1 commit into from
Closed

Fix that two DirectoryResources with different patterns would be deduplicated #15718

wants to merge 1 commit into from

Conversation

mpdude
Copy link
Contributor

@mpdude mpdude commented Sep 7, 2015

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

ResourceInterface::__toString is mainly important because in various places, array_uniqe() is called to perform a de-duplication of resources and will use the string representation for objects.

Thus, we need to take care that if DirectoryResources apply different patterns they must be kept after array_unique calls.

…plicated

ResourceInterface::__toString is mainly important because in various places, array_uniqe() is called to perform a de-duplication of resources and will use the string representation for objects.

Thus, we need to take care that if DirectoryResources apply different patterns they must be kept after array_unique calls.
@stof
Copy link
Member

stof commented Sep 9, 2015

Fixed tickets pointing to the PR itself does not make sense

@stof
Copy link
Member

stof commented Sep 9, 2015

anyway, 👍

@fabpot
Copy link
Member

fabpot commented Sep 10, 2015

should be merged in 2.3, right?

@mpdude
Copy link
Contributor Author

mpdude commented Sep 10, 2015

@fabpot Right. Can you fix that or do you need a new PR?

@fabpot
Copy link
Member

fabpot commented Sep 10, 2015

@mpdude I'm going to merge it in 2.3 myself, thanks.

@fabpot
Copy link
Member

fabpot commented Sep 10, 2015

Thank you @mpdude.

fabpot added a commit that referenced this pull request Sep 10, 2015
…uld be deduplicated (mpdude)

This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes #15718).

Discussion
----------

Fix that two DirectoryResources with different patterns would be deduplicated

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

ResourceInterface::__toString is mainly important because in various places, array_uniqe() is called to perform a de-duplication of resources and will use the string representation for objects.

Thus, we need to take care that if DirectoryResources apply different patterns they must be kept after array_unique calls.

Commits
-------

2b36ac5 Fix that two DirectoryResources with different patterns would be deduplicated
@mpdude
Copy link
Contributor Author

mpdude commented Sep 10, 2015

Merged in d8a801a

@mpdude mpdude closed this Sep 10, 2015
@mpdude mpdude deleted the fix-directory-resource-to-string-semantics branch September 24, 2015 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants