From 8dc6405eeb1b8f95f451e8922ea934bbcddd54fd Mon Sep 17 00:00:00 2001 From: panki3a Date: Sun, 7 Aug 2016 17:16:41 +0200 Subject: [PATCH] Update RecordingCachePool.php (#58) 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 8ba3e1a..e0875f1 100644 --- a/src/Cache/RecordingCachePool.php +++ b/src/Cache/RecordingCachePool.php @@ -57,7 +57,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);