Skip to content

Commit

Permalink
Running php-cs-fixer
Browse files Browse the repository at this point in the history
Running php-cs-fixer to fix CS drift
  • Loading branch information
JimTools committed Jan 17, 2025
1 parent bae7b5f commit ba5374e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions NullMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function setRedelivered(bool $redelivered): void
$this->redelivered = $redelivered;
}

public function setCorrelationId(string $correlationId = null): void
public function setCorrelationId(?string $correlationId = null): void
{
$headers = $this->getHeaders();
$headers['correlation_id'] = (string) $correlationId;
Expand All @@ -110,7 +110,7 @@ public function getCorrelationId(): ?string
return $this->getHeader('correlation_id');
}

public function setMessageId(string $messageId = null): void
public function setMessageId(?string $messageId = null): void
{
$headers = $this->getHeaders();
$headers['message_id'] = (string) $messageId;
Expand All @@ -130,15 +130,15 @@ public function getTimestamp(): ?int
return null === $value ? null : (int) $value;
}

public function setTimestamp(int $timestamp = null): void
public function setTimestamp(?int $timestamp = null): void
{
$headers = $this->getHeaders();
$headers['timestamp'] = (int) $timestamp;

$this->setHeaders($headers);
}

public function setReplyTo(string $replyTo = null): void
public function setReplyTo(?string $replyTo = null): void
{
$this->setHeader('reply_to', $replyTo);
}
Expand Down
6 changes: 3 additions & 3 deletions NullProducer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function send(Destination $destination, Message $message): void
/**
* @return NullProducer
*/
public function setDeliveryDelay(int $deliveryDelay = null): Producer
public function setDeliveryDelay(?int $deliveryDelay = null): Producer
{
$this->deliveryDelay = $deliveryDelay;

Expand All @@ -38,7 +38,7 @@ public function getDeliveryDelay(): ?int
/**
* @return NullProducer
*/
public function setPriority(int $priority = null): Producer
public function setPriority(?int $priority = null): Producer
{
$this->priority = $priority;

Expand All @@ -53,7 +53,7 @@ public function getPriority(): ?int
/**
* @return NullProducer
*/
public function setTimeToLive(int $timeToLive = null): Producer
public function setTimeToLive(?int $timeToLive = null): Producer
{
$this->timeToLive = $timeToLive;

Expand Down
3 changes: 0 additions & 3 deletions Tests/Spec/NullMessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

class NullMessageTest extends MessageSpec
{
/**
* {@inheritdoc}
*/
protected function createMessage()
{
return new NullMessage();
Expand Down

0 comments on commit ba5374e

Please sign in to comment.