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

[9.x] fix Cache::spy incompatibility with Cache::get #46689

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

coleshirley
Copy link
Contributor

See: #41721

The protected get() function is unnecessary since the null coalescing assignment operator exists. Since it is a protected function on the CacheManager class there should be no breaking changes.

Removing it also allows Cache::spy() to now be called as described in the original issue.

@taylorotwell taylorotwell merged commit 4307b85 into laravel:9.x Apr 5, 2023
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