@@ -105,7 +105,7 @@ |
||
105 | 105 | /** |
106 | 106 | * @param callable $handler |
107 | 107 | * |
108 | - * @return callable |
|
108 | + * @return \Closure |
|
109 | 109 | */ |
110 | 110 | public function __invoke(callable $handler) |
111 | 111 | { |
@@ -35,11 +35,11 @@ |
||
35 | 35 | */ |
36 | 36 | public function save($key, CacheEntry $data) |
37 | 37 | { |
38 | - $ttl = $data->getTTL(); |
|
39 | - if ($ttl === 0) { |
|
38 | + $ttl = $data->getTTL(); |
|
39 | + if ($ttl === 0) { |
|
40 | 40 | return $this->cache->set($key, $data); |
41 | - } |
|
42 | - return $this->cache->set($key, $data, $data->getTTL()); |
|
41 | + } |
|
42 | + return $this->cache->set($key, $data, $data->getTTL()); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |