guzzle-cache-middleware icon indicating copy to clipboard operation
guzzle-cache-middleware copied to clipboard

Fix Laravel Cache storage: set empty string als default value

Open herpaderpaldent opened this issue 3 years ago • 0 comments

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 avatar Apr 29 '22 16:04 herpaderpaldent