Skip to content

Commit db0629f

Browse files
authored
Merge branch 'master' into run_unit_tests_on_every_push_and_pull_request
2 parents 5b098d6 + 76ca2c9 commit db0629f

File tree

8 files changed

+7
-8
lines changed

8 files changed

+7
-8
lines changed

.github/workflows/test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
- php-version: '8.3'
1818
symfony-version: '6.4'
1919
coverage: xdebug
20-
2120
steps:
2221
- name: Checkout
2322
uses: actions/checkout@v2

Command/BaseRabbitMqCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ abstract class BaseRabbitMqCommand extends Command
1212
*/
1313
protected $container;
1414

15-
public function setContainer(ContainerInterface $container = null): void
15+
public function setContainer(?ContainerInterface $container = null): void
1616
{
1717
$this->container = $container;
1818
}

DataCollector/MessageDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct($channels)
2121
$this->data = [];
2222
}
2323

24-
public function collect(Request $request, Response $response, \Throwable $exception = null)
24+
public function collect(Request $request, Response $response, ?\Throwable $exception = null)
2525
{
2626
foreach ($this->channels as $channel) {
2727
foreach ($channel->getBasicPublishLog() as $log) {

RabbitMq/AMQPConnectionFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class AMQPConnectionFactory
4141
public function __construct(
4242
$class,
4343
array $parameters,
44-
ConnectionParametersProviderInterface $parametersProvider = null
44+
?ConnectionParametersProviderInterface $parametersProvider = null
4545
) {
4646
$this->class = $class;
4747
$this->parameters = array_merge($this->parameters, $parameters);

RabbitMq/BaseAmqp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ abstract class BaseAmqp
6363
* @param AMQPChannel|null $ch
6464
* @param string|null $consumerTag
6565
*/
66-
public function __construct(AbstractConnection $conn, AMQPChannel $ch = null, $consumerTag = null)
66+
public function __construct(AbstractConnection $conn, ?AMQPChannel $ch = null, $consumerTag = null)
6767
{
6868
$this->conn = $conn;
6969
$this->ch = $ch;

RabbitMq/BatchConsumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class BatchConsumer extends BaseAmqp implements DequeuerInterface
8181
/**
8282
* @param \DateTime|null $dateTime
8383
*/
84-
public function setGracefulMaxExecutionDateTime(\DateTime $dateTime = null)
84+
public function setGracefulMaxExecutionDateTime(?\DateTime $dateTime = null)
8585
{
8686
$this->gracefulMaxExecutionDateTime = $dateTime;
8787
}

RabbitMq/Consumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ protected function isRamAlmostOverloaded()
234234
/**
235235
* @param \DateTime|null $dateTime
236236
*/
237-
public function setGracefulMaxExecutionDateTime(\DateTime $dateTime = null)
237+
public function setGracefulMaxExecutionDateTime(?\DateTime $dateTime = null)
238238
{
239239
$this->gracefulMaxExecutionDateTime = $dateTime;
240240
}

RabbitMq/Producer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function getBasicProperties()
5151
* @param array $additionalProperties
5252
* @param array $headers
5353
*/
54-
public function publish($msgBody, $routingKey = null, $additionalProperties = [], array $headers = null)
54+
public function publish($msgBody, $routingKey = null, $additionalProperties = [], ?array $headers = null)
5555
{
5656
if ($this->autoSetupFabric) {
5757
$this->setupFabric();

0 commit comments

Comments
 (0)