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

[Cache] Allow cache tags to be objects implementing __toString() #38221

Merged
merged 1 commit into from
Sep 17, 2020
Merged

[Cache] Allow cache tags to be objects implementing __toString() #38221

merged 1 commit into from
Sep 17, 2020

Conversation

lstrojny
Copy link
Contributor

Q A
Branch? 4.4
Bug fix? maybe
New feature? maybe
Deprecations? no
Tickets
License MIT
Doc PR

\Symfony\Contracts\Cache\CacheInterface::get(string $key, …) implicitly converts objects with __toString while CacheItem::tag() will throw an exception. That’s a bit of a sharp edge.

@lstrojny lstrojny changed the base branch from master to 4.4 September 17, 2020 09:25
@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Sep 17, 2020
@fabpot
Copy link
Member

fabpot commented Sep 17, 2020

Thank you @lstrojny.

@fabpot fabpot merged commit 7917612 into symfony:4.4 Sep 17, 2020
@lstrojny lstrojny deleted the cache-item-stringable-tags branch September 17, 2020 10:40
This was referenced Sep 27, 2020
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.

None yet

4 participants