flysystem-cached-adapter
flysystem-cached-adapter copied to clipboard
Use checks from AbstractCache to ensure data is valid on load
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.
Can this be resolved?