Skip to content

Conversation

@herpaderpaldent
Copy link
Contributor

By default cache return null if key is not present.

The current implementation will cause the following error notice:
PHP Deprecated: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in /var/www/html/vendor/kevinrob/guzzle-cache-middleware/src/Storage/LaravelCacheStorage.php on line 32

By setting an empty string as default,unserialisewill no longer throw the error notice

@herpaderpaldent herpaderpaldent changed the title set empty string als default value Fix Laravel Cache storage: set empty string als default value Apr 29, 2022
@Kevinrob Kevinrob merged commit 45ba0fe into Kevinrob:master Oct 2, 2022
@bytestream
Copy link
Contributor

@Kevinrob any chance of tagging a new release? 🤞 ❤️

@Kevinrob
Copy link
Owner

@Kevinrob any chance of tagging a new release? 🤞 ❤️

Yes, of course!
v4.0.2

@herpaderpaldent herpaderpaldent deleted the fix/laravel-cache-storage branch January 17, 2023 09:08
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.

3 participants