File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -260,10 +260,9 @@ public function clean(array $conditions = null): void
260
260
261
261
/**
262
262
* Caches results of function/method calls.
263
- * @param mixed
264
263
* @return mixed
265
264
*/
266
- public function call ($ function )
265
+ public function call (callable $ function )
267
266
{
268
267
$ key = func_get_args ();
269
268
if (is_array ($ function ) && is_object ($ function [0 ])) {
@@ -277,9 +276,8 @@ public function call($function)
277
276
278
277
/**
279
278
* Caches results of function/method calls.
280
- * @param mixed
281
279
*/
282
- public function wrap ($ function , array $ dependencies = null ): \Closure
280
+ public function wrap (callable $ function , array $ dependencies = null ): \Closure
283
281
{
284
282
return function () use ($ function , $ dependencies ) {
285
283
$ key = [$ function , func_get_args ()];
You can’t perform that action at this time.
0 commit comments