Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use checks from AbstractCache to ensure data is valid on load #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pl-github
Copy link

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.

@wilr
Copy link

wilr commented Jun 10, 2024

Can this be resolved?

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