Permalink
Browse files

[HHVM] Work around a bug in class_exists() with non-string values.

  • Loading branch information...
1 parent 838e6af commit c8e671a42a037c726a1eefa94562ad717cd5971c @nrk committed Feb 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Predis/Option/ClientConnectionFactory.php
@@ -50,7 +50,7 @@ public function filter(ClientOptionsInterface $options, $value)
return $factory;
}
- if (@class_exists($value)) {
+ if (is_string($value) && @class_exists($value)) {
$factory = new $value();
if (!$factory instanceof ConnectionFactoryInterface) {

0 comments on commit c8e671a

Please sign in to comment.