Skip to content

Commit ba5374e

Browse files
committed
Running php-cs-fixer
Running php-cs-fixer to fix CS drift
1 parent bae7b5f commit ba5374e

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

NullMessage.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function setRedelivered(bool $redelivered): void
9797
$this->redelivered = $redelivered;
9898
}
9999

100-
public function setCorrelationId(string $correlationId = null): void
100+
public function setCorrelationId(?string $correlationId = null): void
101101
{
102102
$headers = $this->getHeaders();
103103
$headers['correlation_id'] = (string) $correlationId;
@@ -110,7 +110,7 @@ public function getCorrelationId(): ?string
110110
return $this->getHeader('correlation_id');
111111
}
112112

113-
public function setMessageId(string $messageId = null): void
113+
public function setMessageId(?string $messageId = null): void
114114
{
115115
$headers = $this->getHeaders();
116116
$headers['message_id'] = (string) $messageId;
@@ -130,15 +130,15 @@ public function getTimestamp(): ?int
130130
return null === $value ? null : (int) $value;
131131
}
132132

133-
public function setTimestamp(int $timestamp = null): void
133+
public function setTimestamp(?int $timestamp = null): void
134134
{
135135
$headers = $this->getHeaders();
136136
$headers['timestamp'] = (int) $timestamp;
137137

138138
$this->setHeaders($headers);
139139
}
140140

141-
public function setReplyTo(string $replyTo = null): void
141+
public function setReplyTo(?string $replyTo = null): void
142142
{
143143
$this->setHeader('reply_to', $replyTo);
144144
}

NullProducer.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function send(Destination $destination, Message $message): void
2323
/**
2424
* @return NullProducer
2525
*/
26-
public function setDeliveryDelay(int $deliveryDelay = null): Producer
26+
public function setDeliveryDelay(?int $deliveryDelay = null): Producer
2727
{
2828
$this->deliveryDelay = $deliveryDelay;
2929

@@ -38,7 +38,7 @@ public function getDeliveryDelay(): ?int
3838
/**
3939
* @return NullProducer
4040
*/
41-
public function setPriority(int $priority = null): Producer
41+
public function setPriority(?int $priority = null): Producer
4242
{
4343
$this->priority = $priority;
4444

@@ -53,7 +53,7 @@ public function getPriority(): ?int
5353
/**
5454
* @return NullProducer
5555
*/
56-
public function setTimeToLive(int $timeToLive = null): Producer
56+
public function setTimeToLive(?int $timeToLive = null): Producer
5757
{
5858
$this->timeToLive = $timeToLive;
5959

Tests/Spec/NullMessageTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77

88
class NullMessageTest extends MessageSpec
99
{
10-
/**
11-
* {@inheritdoc}
12-
*/
1310
protected function createMessage()
1411
{
1512
return new NullMessage();

0 commit comments

Comments
 (0)