File tree Expand file tree Collapse file tree 4 files changed +14
-12
lines changed
Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 11# Change Log
22
3- ## [ NOT RELEASED]
4-
5- ### Added
3+ ## 0.4.0
64
75- Add support for Symfony 7
6+ - Drop support for PHP 7 and PHP 8.0
87
98## 0.3.1
109
Original file line number Diff line number Diff line change 1010 }
1111 ],
1212 "require" : {
13- "php" : " >=8.0.5 " ,
14- "symfony/runtime" : " ^5.4 || ^6.0 || ^7.0"
13+ "php" : " >=8.1 " ,
14+ "symfony/runtime" : " ^5.4.26 || ^6.3.2 || ^7.0"
1515 },
1616 "require-dev" : {
1717 "illuminate/http" : " ^9.14" ,
18- "phpunit/phpunit" : " ^9.5 " ,
18+ "phpunit/phpunit" : " ^9.6.15 " ,
1919 "swoole/ide-helper" : " ^4.6" ,
20- "symfony/http-foundation" : " ^5.4 || ^6.0 || ^7.0" ,
21- "symfony/http-kernel" : " ^5.4 || ^6.0 || ^7.0"
20+ "symfony/http-foundation" : " ^5.4.32 || ^6.3.9 || ^7.0" ,
21+ "symfony/http-kernel" : " ^5.4.33 || ^6.3.10 || ^7.0"
2222 },
2323 "conflict" : {
2424 "ext-swoole" : " <4.6.0"
Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ public static function convertSwooleRequest(Request $request): SymfonyRequest
3838 public static function reflectSymfonyResponse (SymfonyResponse $ sfResponse , Response $ response ): void
3939 {
4040 foreach ($ sfResponse ->headers ->all () as $ name => $ values ) {
41- $ response ->header ((string ) $ name , $ values );
41+ foreach ((array ) $ values as $ value ) {
42+ $ response ->header ((string ) $ name , $ value );
43+ }
4244 }
4345
4446 $ response ->status ($ sfResponse ->getStatusCode ());
Original file line number Diff line number Diff line change @@ -72,9 +72,10 @@ public function testThatSymfonyResponseIsReflected(): void
7272 $ sfResponse ->expects (self ::once ())->method ('getContent ' )->willReturn ('Test ' );
7373
7474 $ response = $ this ->createMock (Response::class);
75- $ response ->expects (self ::exactly (2 ))->method ('header ' )->withConsecutive (
76- ['x-test ' , ['Swoole-Runtime ' ]],
77- ['set-cookie ' , [$ fooCookie , $ barCookie ]]
75+ $ response ->expects (self ::exactly (3 ))->method ('header ' )->withConsecutive (
76+ ['x-test ' , 'Swoole-Runtime ' ],
77+ ['set-cookie ' , $ fooCookie ],
78+ ['set-cookie ' , $ barCookie ]
7879 );
7980 $ response ->expects (self ::once ())->method ('status ' )->with (201 );
8081 $ response ->expects (self ::once ())->method ('end ' )->with ('Test ' );
You can’t perform that action at this time.
0 commit comments