We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d84d532 commit f80f16aCopy full SHA for f80f16a
src/Caching/Cache.php
@@ -271,7 +271,7 @@ public function call($function)
271
$key[0][0] = get_class($function[0]);
272
}
273
return $this->load($key, function () use ($function, $key) {
274
- return Callback::invokeArgs($function, array_slice($key, 1));
+ return $function(...array_slice($key, 1));
275
});
276
277
@@ -289,7 +289,7 @@ public function wrap($function, array $dependencies = null): \Closure
289
290
$data = $this->load($key);
291
if ($data === null) {
292
- $data = $this->save($key, Callback::invokeArgs($function, $key[1]), $dependencies);
+ $data = $this->save($key, $function(...$key[1]), $dependencies);
293
294
return $data;
295
};
0 commit comments