Skip to content
This repository was archived by the owner on Jun 10, 2022. It is now read-only.

Commit 33cc115

Browse files
committed
fix cs err
1 parent 5e3b3d0 commit 33cc115

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/Functional/ProducerTest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ public function consumeProducedMessagesForVerify141(): void
119119
{
120120
try {
121121
$this->verify141();
122-
} catch (\Exception $e){
123-
gc_collect_cycles();
122+
} catch (\Throwable $e) {
123+
\gc_collect_cycles();
124124
}
125125

126126
$this->verify141(true);
@@ -144,8 +144,8 @@ function () use (&$consumedMessages, $executionEnd): bool {
144144

145145
$consumer->start(
146146
function (string $topic, int $partition, array $message) use (&$consumedMessages, $assert): void {
147-
if ($assert)
148-
{
147+
if ($assert) {
148+
149149
self::assertSame($this->topic, $topic);
150150
self::assertLessThan(3, $partition);
151151
self::assertArrayHasKey('offset', $message);
@@ -159,7 +159,8 @@ function (string $topic, int $partition, array $message) use (&$consumedMessages
159159
self::assertContains('msg-', $message['message']['value']);
160160

161161
self::assertEquals(1, $message['offset']);
162-
}else {
162+
} else {
163+
163164
throw new Exception();
164165
}
165166
}

0 commit comments

Comments
 (0)