File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ public function testConnectSuccess(): void
121121 $ capturedDispatches = [];
122122 $ this ->eventDispatcher ->expects ($ this ->exactly (2 ))
123123 ->method ('dispatch ' )
124- ->willReturnCallback (function ($ event , $ eventName ) use (&$ capturedDispatches ) {
124+ ->willReturnCallback (static function ($ event , $ eventName ) use (&$ capturedDispatches ) {
125125 $ capturedDispatches [] = [$ event , $ eventName ];
126126
127127 return $ event ;
@@ -164,7 +164,7 @@ public function testConnectNoConfirmation(): void
164164 $ capturedDispatches = [];
165165 $ this ->eventDispatcher ->expects ($ this ->exactly (2 ))
166166 ->method ('dispatch ' )
167- ->willReturnCallback (function ($ event , $ eventName ) use (&$ capturedDispatches ) {
167+ ->willReturnCallback (static function ($ event , $ eventName ) use (&$ capturedDispatches ) {
168168 $ capturedDispatches [] = [$ event , $ eventName ];
169169
170170 return $ event ;
You can’t perform that action at this time.
0 commit comments