Skip to content

Commit

Permalink
Don’t use polyfilled str_starts_with
Browse files Browse the repository at this point in the history
  • Loading branch information
stayallive committed Nov 28, 2024
1 parent 3b3768d commit 20daec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 20daec1

Please sign in to comment.