Skip to content

Commit aa4be1f

Browse files
authored
Declare method static
1 parent c6636cf commit aa4be1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Controller/Connect/ConnectControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)