mirror of
https://github.com/predis/predis.git
synced 2026-08-29 19:55:45 +00:00
Fix wrong usage of single-quotes for a string expecting interpolation.
This commit is contained in:
@@ -65,7 +65,7 @@ class ClientCluster extends Option
|
||||
default:
|
||||
// TODO: we should not even allow non-string values here.
|
||||
if (is_string($fqnOrType) && !class_exists($fqnOrType)) {
|
||||
throw new \InvalidArgumentException('Class $fqnOrType does not exist');
|
||||
throw new \InvalidArgumentException("Class $fqnOrType does not exist");
|
||||
}
|
||||
return function() use($fqnOrType) {
|
||||
return new $fqnOrType();
|
||||
|
||||
Reference in New Issue
Block a user