From 04e8d5be2c59ad5ea41e9bb4a240911e7652e269 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 21 May 2020 02:27:33 -0400 Subject: [PATCH] Remove deprecated/implicit filter_var() flags in Network\Probe::ensureAbsoluteLinkFromHTMLDoc - Suppresses a test breaking notice message in PHP 7.4 --- src/Network/Probe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 1a7f578673..d5b3e0be8a 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -1792,7 +1792,7 @@ class Probe */ private static function ensureAbsoluteLinkFromHTMLDoc(string $href, string $base, DOMXPath $xpath) { - if (filter_var($href, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED)) { + if (filter_var($href, FILTER_VALIDATE_URL)) { return $href; } -- 2.39.5