Skip to content

Conversation

jorisvaesen
Copy link
Contributor

The NullEngine always returned an empty array with which its behavior differs from other cache engines that return the original list of keys.

Comment on lines +66 to +72
$result = [];

foreach ($keys as $key) {
$result[$key] = $default;
}

return $result;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it should be array_fill_keys((array)$keys, $default) then?

@othercorey othercorey merged commit 382a89e into cakephp:5.x Mar 28, 2025
13 checks passed
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.

4 participants