Commit bd532ee4 by Taylor Otwell

fix cache::remember method with closures.

parent fd446aec
...@@ -74,7 +74,7 @@ abstract class Driver { ...@@ -74,7 +74,7 @@ abstract class Driver {
{ {
if ( ! is_null($item = $this->get($key, null))) return $item; if ( ! is_null($item = $this->get($key, null))) return $item;
$this->put($key, value($default), $minutes); $this->put($key, $default = value($default), $minutes);
return $default; return $default;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment