@@ -69,7 +69,7 @@ public function get($key, $default = null)
6969
7070 return $ default ;
7171 } catch (PhpfastcacheInvalidArgumentException $ e ) {
72- throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), null , $ e );
72+ throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), 0 , $ e );
7373 }
7474 }
7575
@@ -93,7 +93,7 @@ public function set($key, $value, $ttl = null): bool
9393 }
9494 return $ this ->internalCacheInstance ->save ($ cacheItem );
9595 } catch (PhpfastcacheInvalidArgumentException $ e ) {
96- throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), null , $ e );
96+ throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), 0 , $ e );
9797 }
9898 }
9999
@@ -107,7 +107,7 @@ public function delete($key): bool
107107 try {
108108 return $ this ->internalCacheInstance ->deleteItem ($ key );
109109 } catch (PhpfastcacheInvalidArgumentException $ e ) {
110- throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), null , $ e );
110+ throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), 0 , $ e );
111111 }
112112 }
113113
@@ -120,7 +120,7 @@ public function clear(): bool
120120 try {
121121 return $ this ->internalCacheInstance ->clear ();
122122 } catch (PhpfastcacheRootException $ e ) {
123- throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), null , $ e );
123+ throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), 0 , $ e );
124124 }
125125 }
126126
@@ -137,7 +137,7 @@ public function getMultiple($keys, $default = null)
137137 return $ item ->get ();
138138 }, $ this ->internalCacheInstance ->getItems ($ keys ));
139139 } catch (PhpfastcacheInvalidArgumentException $ e ) {
140- throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), null , $ e );
140+ throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), 0 , $ e );
141141 }
142142 }
143143
@@ -163,7 +163,7 @@ public function setMultiple($values, $ttl = null): bool
163163 }
164164 return $ this ->internalCacheInstance ->commit ();
165165 } catch (PhpfastcacheInvalidArgumentException $ e ) {
166- throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), null , $ e );
166+ throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), 0 , $ e );
167167 }
168168 }
169169
@@ -177,7 +177,7 @@ public function deleteMultiple($keys): bool
177177 try {
178178 return $ this ->internalCacheInstance ->deleteItems ($ keys );
179179 } catch (PhpfastcacheInvalidArgumentException $ e ) {
180- throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), null , $ e );
180+ throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), 0 , $ e );
181181 }
182182 }
183183
@@ -192,7 +192,7 @@ public function has($key): bool
192192 $ cacheItem = $ this ->internalCacheInstance ->getItem ($ key );
193193 return $ cacheItem ->isHit () && !$ cacheItem ->isExpired ();
194194 } catch (PhpfastcacheInvalidArgumentException $ e ) {
195- throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), null , $ e );
195+ throw new PhpfastcacheSimpleCacheException ($ e ->getMessage (), 0 , $ e );
196196 }
197197 }
198198
0 commit comments