Skip to content

Commit 31a42a8

Browse files
committed
Bugfix: call with reference only by direct call
1 parent 56ed37c commit 31a42a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function with($func, $identifier) {
5555

5656
$cachedValue = $this->get($identifier, null);
5757
$alreadyCached = null !== $cachedValue;
58-
$funcResult = call_user_func($func, $cachedValue);
58+
$funcResult = $func($cachedValue);
5959

6060
if(false === $alreadyCached) {
6161
$this->set($identifier, $cachedValue);

0 commit comments

Comments
 (0)