Skip to content

Commit 48a3fe5

Browse files
committed
Update CacheItem.php
1 parent a1fddf6 commit 48a3fe5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

CacheItem.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,13 @@ public function setTags(array $tags)
191191
private function initialize()
192192
{
193193
if ($this->callable !== null) {
194-
$f = $this->callable;
195-
list($this->hasValue, $this->value, $this->tags) = $f();
196-
$this->callable = null;
194+
$f = $this->callable;
195+
$result = $f();
196+
$this->hasValue = $result[0];
197+
$this->value = $result[1];
198+
$this->tags = isset($result[2]) ? $result[2] : [];
199+
200+
$this->callable = null;
197201
}
198202
}
199203
}

0 commit comments

Comments
 (0)