We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfae149 commit cb1fbcaCopy full SHA for cb1fbca
Caster/SymfonyCaster.php
@@ -55,7 +55,7 @@ public static function castRequest(Request $request, array $a, Stub $stub, bool
55
public static function castHttpClient($client, array $a, Stub $stub, bool $isNested)
56
{
57
$multiKey = \sprintf("\0%s\0multi", $client::class);
58
- if (isset($a[$multiKey])) {
+ if (isset($a[$multiKey]) && !$a[$multiKey] instanceof Stub) {
59
$a[$multiKey] = new CutStub($a[$multiKey]);
60
}
61
0 commit comments