Skip to content

Commit 9801e4c

Browse files
authored
style
1 parent 6bfef63 commit 9801e4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/dbal/DbalProducer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public function send(Destination $destination, Message $message): void
130130
'redeliver_after' => Type::BIGINT,
131131
]);
132132

133-
if ($rowsAffected !== 1) {
134-
throw new Exception('The message was not enqueued. Dbal did not confirm that record inserted.');
133+
if (1 !== $rowsAffected) {
134+
throw new Exception('The message was not enqueued. Dbal did not confirm that the record is inserted.');
135135
}
136136
} catch (\Exception $e) {
137137
throw new Exception('The transport fails to send the message due to some internal error.', 0, $e);

0 commit comments

Comments
 (0)