File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 27
27
<directory name =" src" />
28
28
</errorLevel >
29
29
</PropertyNotSetInConstructor >
30
+ <RedundantCastGivenDocblockType >
31
+ <errorLevel type =" suppress" >
32
+ <directory name =" src" />
33
+ </errorLevel >
34
+ </RedundantCastGivenDocblockType >
30
35
</issueHandlers >
31
36
</psalm >
Original file line number Diff line number Diff line change @@ -141,14 +141,14 @@ public function withBody(StreamInterface $body): MessageInterface
141
141
private function setHeaders (array $ headers ): void
142
142
{
143
143
foreach ($ headers as $ name => $ value ) {
144
- $ normalizedName = $ this ->normalizeHeaderName ($ name );
145
- $ value = $ this ->normalizeHeaderValue ($ value );
144
+ $ normalizedName = $ this ->normalizeHeaderName (( string ) $ name );
145
+ $ valuse = $ this ->normalizeHeaderValue ($ value );
146
146
if (isset ($ this ->headerNames [$ normalizedName ])) {
147
147
$ name = $ this ->headerNames [$ normalizedName ];
148
- $ this ->headers [$ name ] = \array_merge ($ this ->headers [$ name ], $ value );
148
+ $ this ->headers [$ name ] = \array_merge ($ this ->headers [$ name ], $ valuse );
149
149
} else {
150
150
$ this ->headerNames [$ normalizedName ] = $ name ;
151
- $ this ->headers [$ name ] = $ value ;
151
+ $ this ->headers [$ name ] = $ valuse ;
152
152
}
153
153
}
154
154
}
You can’t perform that action at this time.
0 commit comments