We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56ed37c commit 31a42a8Copy full SHA for 31a42a8
src/Cache.php
@@ -55,7 +55,7 @@ public function with($func, $identifier) {
55
56
$cachedValue = $this->get($identifier, null);
57
$alreadyCached = null !== $cachedValue;
58
- $funcResult = call_user_func($func, $cachedValue);
+ $funcResult = $func($cachedValue);
59
60
if(false === $alreadyCached) {
61
$this->set($identifier, $cachedValue);
0 commit comments