File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function testResetClearsObjectHashMap(): void
3232 {
3333 $ generatedIds = [];
3434 $ router = $ this ->createStub (RouterInterface::class);
35- $ router ->method ('generate ' )->willReturnCallback (static function (string $ name , array $ params ) use (&$ generatedIds ) {
35+ $ router ->method ('generate ' )->willReturnCallback (static function (string $ name , array $ params ) use (&$ generatedIds ): string {
3636 $ generatedIds [] = $ params ['id ' ];
3737
3838 return '/.well-known/genid/ ' .$ params ['id ' ];
@@ -57,7 +57,7 @@ public function testResetClearsClassHashMap(): void
5757 {
5858 $ generatedIds = [];
5959 $ router = $ this ->createStub (RouterInterface::class);
60- $ router ->method ('generate ' )->willReturnCallback (static function (string $ name , array $ params ) use (&$ generatedIds ) {
60+ $ router ->method ('generate ' )->willReturnCallback (static function (string $ name , array $ params ) use (&$ generatedIds ): string {
6161 $ generatedIds [] = $ params ['id ' ];
6262
6363 return '/.well-known/genid/ ' .$ params ['id ' ];
@@ -81,7 +81,7 @@ public function testResetAllowsConverterToBeReused(): void
8181 {
8282 $ generatedIds = [];
8383 $ router = $ this ->createStub (RouterInterface::class);
84- $ router ->method ('generate ' )->willReturnCallback (static function (string $ name , array $ params ) use (&$ generatedIds ) {
84+ $ router ->method ('generate ' )->willReturnCallback (static function (string $ name , array $ params ) use (&$ generatedIds ): string {
8585 $ generatedIds [] = $ params ['id ' ];
8686
8787 return '/.well-known/genid/ ' .$ params ['id ' ];
You can’t perform that action at this time.
0 commit comments