We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf51c8f commit 2cfe921Copy full SHA for 2cfe921
Client/CacheClientFactory.php
@@ -12,6 +12,7 @@
12
13
namespace Koded\Caching\Client;
14
15
+use Error;
16
use Exception;
17
use Koded\Caching\{Cache, CacheException};
18
use Koded\Caching\Configuration\{MemcachedConfiguration, PredisConfiguration, RedisConfiguration};
@@ -136,7 +137,7 @@ private function newRedis(RedisConfiguration $conf): \Redis
136
137
catch (\RedisException $e) {
138
error_log('[Redis] ' . $e->getMessage());
139
throw CacheException::withConnectionErrorFor('Redis');
- } catch (Exception $e) {
140
+ } catch (Exception | Error $e) {
141
throw CacheException::from($e);
142
}
143
0 commit comments