Sfoglia il codice sorgente

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

Daniele Alessandri 14 anni fa
parent
commit
39ed8e3e8f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/Predis/Options/ClientCluster.php

+ 1 - 1
lib/Predis/Options/ClientCluster.php

@@ -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();