Skip to content

Commit 3e838f9

Browse files
Merge branch '7.1' into 7.2
* 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)
2 parents 5b9fdd2 + 794ddd5 commit 3e838f9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

AbstractUriElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(
3636
$this->setNode($node);
3737
$this->method = $method ? strtoupper($method) : null;
3838

39-
$elementUriIsRelative = null === parse_url(trim($this->getRawUri()), \PHP_URL_SCHEME);
39+
$elementUriIsRelative = !parse_url(trim($this->getRawUri()), \PHP_URL_SCHEME);
4040
$baseUriIsAbsolute = null !== $this->currentUri && \in_array(strtolower(substr($this->currentUri, 0, 4)), ['http', 'file']);
4141
if ($elementUriIsRelative && !$baseUriIsAbsolute) {
4242
throw new \InvalidArgumentException(\sprintf('The URL of the element is relative, so you must define its base URI passing an absolute URL to the constructor of the "%s" class ("%s" was passed).', __CLASS__, $this->currentUri));

Form.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,8 @@ public function getUri(): string
182182
$uri = parent::getUri();
183183

184184
if (!\in_array($this->getMethod(), ['POST', 'PUT', 'DELETE', 'PATCH'])) {
185-
$query = parse_url($uri, \PHP_URL_QUERY);
186185
$currentParameters = [];
187-
if ($query) {
186+
if ($query = parse_url($uri, \PHP_URL_QUERY)) {
188187
parse_str($query, $currentParameters);
189188
}
190189

0 commit comments

Comments
 (0)