Skip to content

Commit

Permalink
Merge branch '7.1' into 7.2
Browse files Browse the repository at this point in the history
* 7.1:
  initialize RedisAdapter cursor to 0
  do not skip tests from data providers
  ensure compatibility with Twig 3.15
  [Mime] fix encoding issue with UTF-8 addresses containing doubles spaces
  fix translation file syntax
  [Notifier] Improve Telegrams markdown escaping
  [Validator] [Choice] Fix callback option if not array returned
  [DependencyInjection] Fix linting factories implemented via __callStatic
  [DependencyInjection] Fix replacing abstract arguments with bindings
  [DependencyInjection] Fix parsing nested AutowireInline attributes
  Minor fixes around parse_url() checks
  Ensure compatibility with mongodb v2
  Add missing translations for Turkish (tr)
  • Loading branch information
nicolas-grekas committed Oct 25, 2024
2 parents aba39e9 + 0dcd514 commit cb926cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UrlPackage.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private function getSslUrls(array $urls): array
foreach ($urls as $url) {
if (str_starts_with($url, 'https://') || str_starts_with($url, '//') || '' === $url) {
$sslUrls[] = $url;
} elseif (null === parse_url($url, \PHP_URL_SCHEME)) {
} elseif (!parse_url($url, \PHP_URL_SCHEME)) {
throw new InvalidArgumentException(\sprintf('"%s" is not a valid URL.', $url));
}
}
Expand Down

0 comments on commit cb926cd

Please sign in to comment.