flysystem-cached-adapter icon indicating copy to clipboard operation
flysystem-cached-adapter copied to clipboard

Use checks from AbstractCache to ensure data is valid on load

Open pl-github opened this issue 5 years ago • 1 comments

In some cases we get the following warning in our application:

Warning: array_key_exists() expects parameter 2 to be array, null given`

The only possible reason I found for this issue is, that invalid data has been read while loading, because Adapter is less strict than its base class AbstractAdapter. So I copied the missing checks to the Adapter class and added some tests.

pl-github avatar Mar 31 '20 07:03 pl-github

Can this be resolved?

wilr avatar Jun 10 '24 20:06 wilr