You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (false == in_array($this->config['scheme'], $supportedSchemes, true)) {
99
-
thrownew \LogicException(sprintf(
100
-
'The given scheme protocol "%s" is not supported by php extension. It must be one of "%s"',
101
-
$this->config['scheme'],
102
-
implode('", "', $supportedSchemes)
103
-
));
99
+
thrownew \LogicException(sprintf('The given scheme protocol "%s" is not supported by php extension. It must be one of "%s"', $this->config['scheme'], implode('", "', $supportedSchemes)));
@@ -47,11 +46,7 @@ public function __construct($redis, int $redeliveryDelay)
47
46
} elseif (is_callable($redis)) {
48
47
$this->redisFactory = $redis;
49
48
} else {
50
-
thrownew \InvalidArgumentException(sprintf(
51
-
'The $redis argument must be either %s or callable that returns %s once called.',
52
-
Redis::class,
53
-
Redis::class
54
-
));
49
+
thrownew \InvalidArgumentException(sprintf('The $redis argument must be either %s or callable that returns %s once called.', Redis::class, Redis::class));
55
50
}
56
51
57
52
$this->redeliveryDelay = $redeliveryDelay;
@@ -159,11 +154,7 @@ public function getRedis(): Redis
159
154
if (false == $this->redis) {
160
155
$redis = call_user_func($this->redisFactory);
161
156
if (false == $redisinstanceof Redis) {
162
-
thrownew \LogicException(sprintf(
163
-
'The factory must return instance of %s. It returned %s',
thrownew \LogicException(sprintf('The factory must return instance of %s. It returned %s', Redis::class, is_object($redis) ? $redis::class : gettype($redis)));
0 commit comments