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

Accept only array in TagAwareAdapter::invalidateTags() #7073

Closed
wants to merge 2 commits into from

Conversation

Koc
Copy link
Contributor

@Koc Koc commented Oct 21, 2016

Reflect changes introduced in symfony/symfony#20172

@@ -40,9 +40,6 @@ If ``$cache`` implements :class:`Symfony\\Component\\Cache\\TagAwareAdapterInter
you can invalidate the cached items by calling
:method:`Symfony\\Component\\Cache\\TagAwareAdapterInterface::invalidateTags`::

// invalidate all items related to `tag_2`
$cache->invalidateTags('tag_2');

// or invalidate all items related to `tag_1` or `tag_3`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should change the comment here to and remove the "or" at the beginning.

@wouterj
Copy link
Member

wouterj commented Oct 21, 2016

👍 (apart from the minor comment of @xabbuh)

status: reviewed

@xabbuh
Copy link
Member

xabbuh commented Oct 22, 2016

Thank you @Koc.

@xabbuh xabbuh closed this in 152aecc Oct 22, 2016
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