From fd563fe15e30e1ccc7df3601f5b24eb7c07587f5 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tim.dijen@minbzk.nl>
Date: Wed, 10 Jul 2019 13:43:57 +0200
Subject: [PATCH] Make test more specific

---
 lib/SimpleSAML/Utils/HTTP.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php
index 257fdb57a..cb0bb41c6 100644
--- a/lib/SimpleSAML/Utils/HTTP.php
+++ b/lib/SimpleSAML/Utils/HTTP.php
@@ -139,7 +139,7 @@ class HTTP
             return false;
         }
         $scheme = parse_url($url, PHP_URL_SCHEME);
-        if ($scheme !== false && in_array(strtolower($scheme), ['http', 'https'], true)) {
+        if (is_string($scheme) && in_array(strtolower($scheme), ['http', 'https'], true)) {
             return true;
         }
         return false;
-- 
GitLab