Skip to content

Commit df1411f

Browse files
committed
Add a few more ??=
1 parent ce97530 commit df1411f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Transport/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ private function publishOnExchange(\AMQPExchange $exchange, string $body, string
329329
{
330330
$attributes = $amqpStamp ? $amqpStamp->getAttributes() : [];
331331
$attributes['headers'] = array_merge($attributes['headers'] ?? [], $headers);
332-
$attributes['delivery_mode'] = $attributes['delivery_mode'] ?? 2;
333-
$attributes['timestamp'] = $attributes['timestamp'] ?? time();
332+
$attributes['delivery_mode'] ??= 2;
333+
$attributes['timestamp'] ??= time();
334334

335335
$exchange->publish(
336336
$body,

0 commit comments

Comments
 (0)