Skip to content

Comments

[12.x] Allow enum keys in Cache::flexible() and withoutOverlapping()#58444

Merged
taylorotwell merged 4 commits intolaravel:12.xfrom
jackbayliss:12.x-adjust-repository
Jan 21, 2026
Merged

[12.x] Allow enum keys in Cache::flexible() and withoutOverlapping()#58444
taylorotwell merged 4 commits intolaravel:12.xfrom
jackbayliss:12.x-adjust-repository

Conversation

@jackbayliss
Copy link
Contributor

@jackbayliss jackbayliss commented Jan 21, 2026

Me again

Cache::flexible() and withoutOverlapping() didn't support support enums, so adjusted / added tests for consistency with everything else.

Also noticed two of the offset method docs were missing enum types, so added.
(Valuable if anyone is calling it directly I guess unlikely, but possible such as Cache::driver('x')->offsetUnset(...))

I think this now covers everything here enum wise.

Thanks

@github-actions
Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@jackbayliss
Copy link
Contributor Author

Failing due to PHPStan - same as main afaik. Shouldn't be related.

@jackbayliss jackbayliss marked this pull request as ready for review January 21, 2026 00:41
@taylorotwell taylorotwell merged commit 985d68b into laravel:12.x Jan 21, 2026
70 of 72 checks passed
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