From 20daec19871c7b3cd0a374a8caafc1cb518d1542 Mon Sep 17 00:00:00 2001 From: Alex Bouma Date: Thu, 28 Nov 2024 12:38:36 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20use=20polyfilled=20`str=5Fstart?= =?UTF-8?q?s=5Fwith`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Options.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Options.php b/src/Options.php index 02b67d559..ee7b73c15 100644 --- a/src/Options.php +++ b/src/Options.php @@ -1280,7 +1280,7 @@ private function normalizeBooleanOrUrl(SymfonyOptions $options, ?string $boolean return false; } - if (str_starts_with($booleanOrUrl, 'http')) { + if (filter_var($booleanOrUrl, \FILTER_VALIDATE_URL)) { return $booleanOrUrl; }