Permalink
Browse files

Allow Method and FunctionCache to also receive null-values.

This can happen in cases where simply no gatherer is required
  • Loading branch information...
steffen
steffen committed May 3, 2015
1 parent e8b442d commit 6b63cad296403fc8f37a3300d1744727ff5e3007
Showing with 2 additions and 2 deletions.
  1. +1 −1 Library/Cache/FunctionCache.php
  2. +1 −1 Library/Cache/MethodCache.php
@@ -53,7 +53,7 @@ class FunctionCache
*
* @param CallGathererPass $gatherer
*/
public function __construct(CallGathererPass $gatherer)
public function __construct(CallGathererPass $gatherer = null)
{
$this->gatherer = $gatherer;
}
@@ -57,7 +57,7 @@ class MethodCache
*
* @param CallGathererPass $gatherer
*/
public function __construct(CallGathererPass $gatherer)
public function __construct(CallGathererPass $gatherer = null)
{
$this->gatherer = $gatherer;
}

0 comments on commit 6b63cad

Please sign in to comment.