diff --git a/src/Traits/MemoizationTrait.php b/src/Traits/MemoizationTrait.php index 983362e3..910e489e 100644 --- a/src/Traits/MemoizationTrait.php +++ b/src/Traits/MemoizationTrait.php @@ -15,11 +15,11 @@ private function memoize(callable $compute): callable { $namespace = serialize($compute); - return function() use ($namespace, $compute) { - $args = func_get_args(); + return function () use ($namespace, $compute) { + $args = \func_get_args(); $key = $namespace . ':' . implode(':', $args); - if (!array_key_exists($key, $this->memo)) { - $this->memo[$key] = call_user_func_array($compute, $args); + if (!\array_key_exists($key, $this->memo)) { + $this->memo[$key] = \call_user_func_array($compute, $args); } return $this->memo[$key]; };