Remove deprecated/implicit filter_var() flags in Network\Probe::ensureAbsoluteLinkFromHTMLDoc

- Suppresses a test breaking notice message in PHP 7.4
This commit is contained in:
Hypolite Petovan 2020-05-21 02:27:33 -04:00
parent 782218f781
commit 04e8d5be2c

View file

@ -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;
}