Skip to content

Commit b6ef137

Browse files
alexcarolpolyfractal
authored andcommitted
Remove deprecated redundant FILTER_VALIDATE_URL from (#803)
1 parent 64935da commit b6ef137

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
@@ -671,7 +671,7 @@ private function extractURIParts($host)
671671
*/
672672
private function prependMissingScheme($host)
673673
{
674-
if (!filter_var($host, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)) {
674+
if (!filter_var($host, FILTER_VALIDATE_URL)) {
675675
$host = 'http://' . $host;
676676
}
677677

0 commit comments

Comments
 (0)