Skip to content

Commit

Permalink
Update RedisExtension.php
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Apr 10, 2017
1 parent cbe29ee commit fe6b9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kdyby/Redis/DI/RedisExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public function beforeCompile()

protected static function fixClientConfig(array $config)
{
if ($config['host'][0] === '/') {
if (is_string($config['host']) && $config['host'][0] === '/') {
$config['port'] = NULL; // sockets have no ports

} elseif (!$config['port']) {
Expand Down

0 comments on commit fe6b9ac

Please sign in to comment.