From d6be9d0b65427ec04ee241e5e86ec4e634665652 Mon Sep 17 00:00:00 2001 From: panki3a Date: Wed, 20 Jul 2016 10:46:25 +0200 Subject: [PATCH] Update RecordingCachePool.php default second argument changed to empty array in method timeCall, because calling call_user_func_array([$this->cachePool, $name], $arguments); is expecting second argument only Array, not NULL. --- src/Cache/RecordingCachePool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cache/RecordingCachePool.php b/src/Cache/RecordingCachePool.php index 307a32e..aaeb88a 100644 --- a/src/Cache/RecordingCachePool.php +++ b/src/Cache/RecordingCachePool.php @@ -56,7 +56,7 @@ protected function addCall($call) * * @return object */ - private function timeCall($name, array $arguments = null) + private function timeCall($name, array $arguments = []) { $start = microtime(true); $result = call_user_func_array([$this->cachePool, $name], $arguments);