Skip to content

Commit

Permalink
Update RecordingCachePool.php (#58)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
panki3a authored and Nyholm committed Aug 7, 2016
1 parent c6c3137 commit 8dc6405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cache/RecordingCachePool.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8dc6405

Please sign in to comment.