@@ -116,7 +116,7 @@ public function _before(TestInterface $test): void
116
116
* $I->pushToExchange('exchange.emails', new AMQPMessage('Thanks!'), 'severity');
117
117
* ```
118
118
*/
119
- public function pushToExchange (string $ exchange , string |AMQPMessage $ message , string $ routing_key = null ): void
119
+ public function pushToExchange (string $ exchange , string |AMQPMessage $ message , ? string $ routing_key = null ): void
120
120
{
121
121
$ message = $ message instanceof AMQPMessage
122
122
? $ message
@@ -166,8 +166,8 @@ public function declareExchange(
166
166
bool $ auto_delete = true ,
167
167
bool $ internal = false ,
168
168
bool $ nowait = false ,
169
- array $ arguments = null ,
170
- int $ ticket = null
169
+ ? array $ arguments = null ,
170
+ ? int $ ticket = null
171
171
) {
172
172
return $ this ->getChannel ()->exchange_declare (
173
173
$ exchange ,
@@ -203,8 +203,8 @@ public function declareQueue(
203
203
bool $ exclusive = false ,
204
204
bool $ auto_delete = true ,
205
205
bool $ nowait = false ,
206
- array $ arguments = null ,
207
- int $ ticket = null
206
+ ? array $ arguments = null ,
207
+ ? int $ ticket = null
208
208
): ?array {
209
209
return $ this ->getChannel ()->queue_declare (
210
210
$ queue ,
@@ -239,8 +239,8 @@ public function bindQueueToExchange(
239
239
string $ exchange ,
240
240
string $ routing_key = '' ,
241
241
bool $ nowait = false ,
242
- array $ arguments = null ,
243
- int $ ticket = null
242
+ ? array $ arguments = null ,
243
+ ? int $ ticket = null
244
244
) {
245
245
return $ this ->getChannel ()->queue_bind (
246
246
$ queue ,
0 commit comments