Fix wrong usage of single-quotes for a string expecting interpolation.

This commit is contained in:
Daniele Alessandri
2011-12-16 20:36:01 +01:00
parent 5561ce6bd3
commit 39ed8e3e8f
+1 -1
View File
@@ -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();