Skip to content

Commit d2a2476

Browse files
Merge branch '7.4' into 8.0
* 7.4: [HttpClient] Fix caching client decorating scoping client [DownCralwer] Fix inline type info [FrameworkBundle] Add missing `container.excluded` to `serializer.attribute_metadata` [DomCrawler] Fix converting HTML5 trees to DOM nodes [VarDumper] Fix dumping CurlHttpClient instances [DomCrawler] Properly ignore errors when using the native HTML5 parser [Validator] Correct PHPDoc for Collection constructor
2 parents d971ae4 + 41fd6c4 commit d2a2476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Caster/SymfonyCaster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static function castRequest(Request $request, array $a, Stub $stub, bool
5252
public static function castHttpClient($client, array $a, Stub $stub, bool $isNested): array
5353
{
5454
$multiKey = \sprintf("\0%s\0multi", $client::class);
55-
if (isset($a[$multiKey])) {
55+
if (isset($a[$multiKey]) && !$a[$multiKey] instanceof Stub) {
5656
$a[$multiKey] = new CutStub($a[$multiKey]);
5757
}
5858

0 commit comments

Comments
 (0)