Skip to content

Commit 9ecc8ff

Browse files
authored
Port should not be a string
This fixes the failing ClientTest
1 parent 54369b6 commit 9ecc8ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch/ClientBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ private function normalizeExtendedHost(array $host)
638638
$host['scheme'] = 'http';
639639
}
640640
if (isset($host['port']) === false) {
641-
$host['port'] = '9200';
641+
$host['port'] = 9200;
642642
}
643643
return $host;
644644
}

0 commit comments

Comments
 (0)