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
@@ -346,10 +342,8 @@ public function getSslPassPhrase()
346
342
}
347
343
348
344
/**
349
-
* @param string $name
350
-
* @param mixed $default
351
-
*
352
-
* @return mixed
345
+
* @param string $name
346
+
* @param mixed|null $default
353
347
*/
354
348
publicfunctiongetOption($name, $default = null)
355
349
{
@@ -383,11 +377,7 @@ private function parseDsn($dsn)
383
377
384
378
$supportedSchemes = $this->supportedSchemes;
385
379
if (false == in_array($dsn->getSchemeProtocol(), $supportedSchemes, true)) {
386
-
thrownew \LogicException(sprintf(
387
-
'The given scheme protocol "%s" is not supported. It must be one of "%s".',
388
-
$dsn->getSchemeProtocol(),
389
-
implode('", "', $supportedSchemes)
390
-
));
380
+
thrownew \LogicException(sprintf('The given scheme protocol "%s" is not supported. It must be one of "%s".', $dsn->getSchemeProtocol(), implode('", "', $supportedSchemes)));
391
381
}
392
382
393
383
$sslOn = false;
@@ -406,7 +396,7 @@ private function parseDsn($dsn)
thrownewInvalidDestinationException(sprintf('The destination must be an instance of %s but got %s.',
43
-
AmqpTopic::class.'|'.AmqpQueue::class,
44
-
get_class($dest)
45
-
));
42
+
thrownewInvalidDestinationException(sprintf('The destination must be an instance of %s but got %s.', AmqpTopic::class.'|'.AmqpQueue::class, $dest::class));
thrownewInvalidDestinationException(sprintf('The destination must be an instance of %s but got %s.',
48
-
AmqpTopic::class.'|'.AmqpQueue::class,
49
-
get_class($dest)
50
-
));
44
+
thrownewInvalidDestinationException(sprintf('The destination must be an instance of %s but got %s.', AmqpTopic::class.'|'.AmqpQueue::class, $dest::class));
0 commit comments