Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Remove deprecated FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED #337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Object/DownloadedJWKSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down