From 4f1f19352d85b013deef1d3241fb7ae430aeb04f Mon Sep 17 00:00:00 2001 From: Jimbolino Date: Tue, 22 Sep 2020 10:51:44 +0200 Subject: [PATCH] Remove deprecated FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED https://php.watch/versions/7.3/filter-var-flag-deprecation --- src/Object/DownloadedJWKSet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Object/DownloadedJWKSet.php b/src/Object/DownloadedJWKSet.php index ac72be54..51fb7088 100644 --- a/src/Object/DownloadedJWKSet.php +++ b/src/Object/DownloadedJWKSet.php @@ -62,7 +62,7 @@ public function __construct($url, CacheItemPoolInterface $cache = null, $ttl = 8 Assertion::boolean($allow_http_connection); Assertion::integer($ttl); Assertion::min($ttl, 0); - Assertion::false(false === filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED), 'Invalid URL.'); + Assertion::false(false === filter_var($url, FILTER_VALIDATE_URL), 'Invalid URL.'); $allowed_protocols = ['https']; if (true === $allow_http_connection) { $allowed_protocols[] = 'http';