Skip to content

Commit 7c3172e

Browse files
Merge branch '5.4' into 6.2
* 5.4: re-allow phpdocumentor/type-resolver 1.7 skip test using attributes on PHP 7 [HttpClient] Encode and decode curly brackets {} fix: GetSetMethodNormalizer::supportss should not check ignored methods Stop stopwatch events in case of exception add translations for the filename max length validator option [Validator] Update BIC validator IBAN mappings [String] Correct inflection of 'codes' and 'names'
2 parents 8360ed5 + a2db7ef commit 7c3172e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

HttpClientTrait.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,9 +631,7 @@ private static function mergeQueryString(?string $queryString, array $queryArray
631631
'%5D' => ']',
632632
'%5E' => '^',
633633
'%60' => '`',
634-
'%7B' => '{',
635634
'%7C' => '|',
636-
'%7D' => '}',
637635
]);
638636
}
639637

Tests/HttpClientTraitTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public static function provideResolveUrl(): array
8989
[self::RFC3986_BASE, '/g', 'http://a/g'],
9090
[self::RFC3986_BASE, '//g', 'http://g/'],
9191
[self::RFC3986_BASE, '?y', 'http://a/b/c/d;p?y'],
92+
[self::RFC3986_BASE, '?y={"f":1}', 'http://a/b/c/d;p?y={%22f%22:1}'],
93+
[self::RFC3986_BASE, 'g{oof}y', 'http://a/b/c/g{oof}y'],
9294
[self::RFC3986_BASE, 'g?y', 'http://a/b/c/g?y'],
9395
[self::RFC3986_BASE, '#s', 'http://a/b/c/d;p?q#s'],
9496
[self::RFC3986_BASE, 'g#s', 'http://a/b/c/g#s'],
@@ -173,10 +175,11 @@ public static function provideParseUrl(): iterable
173175
yield [['https:', '//xn--dj-kia8a.example.com:8000', '/', null, null], 'https://DÉjà.Example.com:8000/'];
174176
yield [[null, null, '/f%20o.o', '?a=b', '#c'], '/f o%2Eo?a=b#c'];
175177
yield [[null, '//a:b@foo', '/bar', null, null], '//a:b@foo/bar'];
178+
yield [[null, '//a:b@foo', '/b{}', null, null], '//a:b@foo/b{}'];
176179
yield [['http:', null, null, null, null], 'http:'];
177180
yield [['http:', null, 'bar', null, null], 'http:bar'];
178181
yield [[null, null, 'bar', '?a=1&c=c', null], 'bar?a=a&b=b', ['b' => null, 'c' => 'c', 'a' => 1]];
179-
yield [[null, null, 'bar', '?a=b+c&b=b-._~!$%26/%27()[]*%2B%2C;%3D:@%25\\^`{|}', null], 'bar?a=b+c', ['b' => 'b-._~!$&/\'()[]*+,;=:@%\\^`{|}']];
182+
yield [[null, null, 'bar', '?a=b+c&b=b-._~!$%26/%27()[]*%2B%2C;%3D:@%25\\^`%7B|%7D', null], 'bar?a=b+c', ['b' => 'b-._~!$&/\'()[]*+,;=:@%\\^`{|}']];
180183
yield [[null, null, 'bar', '?a=b%2B%20c', null], 'bar?a=b+c', ['a' => 'b+ c']];
181184
yield [[null, null, 'bar', '?a[b]=c', null], 'bar', ['a' => ['b' => 'c']]];
182185
yield [[null, null, 'bar', '?a[b[c]=d', null], 'bar?a[b[c]=d', []];

0 commit comments

Comments
 (0)