Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 2f426da

Browse files
committed
Merge pull request #172 from samsonasik/count-op
count optimization
2 parents 1b83f1c + 778b83b commit 2f426da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Psr/CacheItemPool/CacheItemPoolDecorator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function getItems(array $keys = [])
104104

105105
$keys = array_diff($keys, array_keys($items));
106106

107-
if (count($keys)) {
107+
if ($keys) {
108108
try {
109109
$cacheItems = $this->storage->getItems($keys);
110110
} catch (Exception\InvalidArgumentException $e) {

0 commit comments

Comments
 (0)