Skip to content

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

Merged
taylorotwell merged 1 commit intolaravel:9.xfrom
coleshirley:9.x
Apr 5, 2023
Merged

[9.x] fix Cache::spy incompatibility with Cache::get#46689
taylorotwell merged 1 commit intolaravel:9.xfrom
coleshirley:9.x

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

Comments