@@ -18,7 +18,7 @@ public function connectionStart($version_major = 0, $version_minor = 9, $server_
18
18
$ args = new AMQPWriter ();
19
19
$ args ->write_octet ($ version_major );
20
20
$ args ->write_octet ($ version_minor );
21
- $ args ->write_table ($ server_properties );
21
+ $ args ->write_table (empty ( $ server_properties ) ? array () : $ server_properties );
22
22
$ args ->write_longstr ($ mechanisms );
23
23
$ args ->write_longstr ($ locales );
24
24
return array (10 , 10 , $ args );
@@ -280,14 +280,14 @@ public static function accessRequestOk($args)
280
280
/**
281
281
* @return array
282
282
*/
283
- public function exchangeDeclare ($ ticket = 0 , $ exchange , $ type = 'direct ' , $ passive = false , $ durable = false , $ auto_delete = false , $ internal = false , $ nowait = false , $ arguments = null )
283
+ public function exchangeDeclare ($ ticket = 0 , $ exchange , $ type = 'direct ' , $ passive = false , $ durable = false , $ auto_delete = false , $ internal = false , $ nowait = false , $ arguments = array () )
284
284
{
285
285
$ args = new AMQPWriter ();
286
286
$ args ->write_short ($ ticket );
287
287
$ args ->write_shortstr ($ exchange );
288
288
$ args ->write_shortstr ($ type );
289
289
$ args ->write_bits (array ($ passive , $ durable , $ auto_delete , $ internal , $ nowait ));
290
- $ args ->write_table (empty ($ arguments )? array (): $ arguments );
290
+ $ args ->write_table (empty ($ arguments ) ? array () : $ arguments );
291
291
return array (40 , 10 , $ args );
292
292
}
293
293
@@ -334,15 +334,15 @@ public static function exchangeDeleteOk($args)
334
334
/**
335
335
* @return array
336
336
*/
337
- public function exchangeBind ($ ticket = 0 , $ destination , $ source , $ routing_key = '' , $ nowait = false , $ arguments = null )
337
+ public function exchangeBind ($ ticket = 0 , $ destination , $ source , $ routing_key = '' , $ nowait = false , $ arguments = array () )
338
338
{
339
339
$ args = new AMQPWriter ();
340
340
$ args ->write_short ($ ticket );
341
341
$ args ->write_shortstr ($ destination );
342
342
$ args ->write_shortstr ($ source );
343
343
$ args ->write_shortstr ($ routing_key );
344
344
$ args ->write_bits (array ($ nowait ));
345
- $ args ->write_table (empty ($ arguments )? array (): $ arguments );
345
+ $ args ->write_table (empty ($ arguments ) ? array () : $ arguments );
346
346
return array (40 , 30 , $ args );
347
347
}
348
348
@@ -363,15 +363,15 @@ public static function exchangeBindOk($args)
363
363
/**
364
364
* @return array
365
365
*/
366
- public function exchangeUnbind ($ ticket = 0 , $ destination , $ source , $ routing_key = '' , $ nowait = false , $ arguments = null )
366
+ public function exchangeUnbind ($ ticket = 0 , $ destination , $ source , $ routing_key = '' , $ nowait = false , $ arguments = array () )
367
367
{
368
368
$ args = new AMQPWriter ();
369
369
$ args ->write_short ($ ticket );
370
370
$ args ->write_shortstr ($ destination );
371
371
$ args ->write_shortstr ($ source );
372
372
$ args ->write_shortstr ($ routing_key );
373
373
$ args ->write_bits (array ($ nowait ));
374
- $ args ->write_table (empty ($ arguments )? array (): $ arguments );
374
+ $ args ->write_table (empty ($ arguments ) ? array () : $ arguments );
375
375
return array (40 , 40 , $ args );
376
376
}
377
377
@@ -392,13 +392,13 @@ public static function exchangeUnbindOk($args)
392
392
/**
393
393
* @return array
394
394
*/
395
- public function queueDeclare ($ ticket = 0 , $ queue = '' , $ passive = false , $ durable = false , $ exclusive = false , $ auto_delete = false , $ nowait = false , $ arguments = null )
395
+ public function queueDeclare ($ ticket = 0 , $ queue = '' , $ passive = false , $ durable = false , $ exclusive = false , $ auto_delete = false , $ nowait = false , $ arguments = array () )
396
396
{
397
397
$ args = new AMQPWriter ();
398
398
$ args ->write_short ($ ticket );
399
399
$ args ->write_shortstr ($ queue );
400
400
$ args ->write_bits (array ($ passive , $ durable , $ exclusive , $ auto_delete , $ nowait ));
401
- $ args ->write_table (empty ($ arguments )? array (): $ arguments );
401
+ $ args ->write_table (empty ($ arguments ) ? array () : $ arguments );
402
402
return array (50 , 10 , $ args );
403
403
}
404
404
@@ -422,15 +422,15 @@ public static function queueDeclareOk($args)
422
422
/**
423
423
* @return array
424
424
*/
425
- public function queueBind ($ ticket = 0 , $ queue = '' , $ exchange , $ routing_key = '' , $ nowait = false , $ arguments = null )
425
+ public function queueBind ($ ticket = 0 , $ queue = '' , $ exchange , $ routing_key = '' , $ nowait = false , $ arguments = array () )
426
426
{
427
427
$ args = new AMQPWriter ();
428
428
$ args ->write_short ($ ticket );
429
429
$ args ->write_shortstr ($ queue );
430
430
$ args ->write_shortstr ($ exchange );
431
431
$ args ->write_shortstr ($ routing_key );
432
432
$ args ->write_bits (array ($ nowait ));
433
- $ args ->write_table (empty ($ arguments )? array (): $ arguments );
433
+ $ args ->write_table (empty ($ arguments ) ? array () : $ arguments );
434
434
return array (50 , 20 , $ args );
435
435
}
436
436
@@ -505,14 +505,14 @@ public static function queueDeleteOk($args)
505
505
/**
506
506
* @return array
507
507
*/
508
- public function queueUnbind ($ ticket = 0 , $ queue = '' , $ exchange , $ routing_key = '' , $ arguments = null )
508
+ public function queueUnbind ($ ticket = 0 , $ queue = '' , $ exchange , $ routing_key = '' , $ arguments = array () )
509
509
{
510
510
$ args = new AMQPWriter ();
511
511
$ args ->write_short ($ ticket );
512
512
$ args ->write_shortstr ($ queue );
513
513
$ args ->write_shortstr ($ exchange );
514
514
$ args ->write_shortstr ($ routing_key );
515
- $ args ->write_table (empty ($ arguments )? array (): $ arguments );
515
+ $ args ->write_table (empty ($ arguments ) ? array () : $ arguments );
516
516
return array (50 , 50 , $ args );
517
517
}
518
518
@@ -559,14 +559,14 @@ public static function basicQosOk($args)
559
559
/**
560
560
* @return array
561
561
*/
562
- public function basicConsume ($ ticket = 0 , $ queue = '' , $ consumer_tag = '' , $ no_local = false , $ no_ack = false , $ exclusive = false , $ nowait = false , $ arguments = null )
562
+ public function basicConsume ($ ticket = 0 , $ queue = '' , $ consumer_tag = '' , $ no_local = false , $ no_ack = false , $ exclusive = false , $ nowait = false , $ arguments = array () )
563
563
{
564
564
$ args = new AMQPWriter ();
565
565
$ args ->write_short ($ ticket );
566
566
$ args ->write_shortstr ($ queue );
567
567
$ args ->write_shortstr ($ consumer_tag );
568
568
$ args ->write_bits (array ($ no_local , $ no_ack , $ exclusive , $ nowait ));
569
- $ args ->write_table (empty ($ arguments )? array (): $ arguments );
569
+ $ args ->write_table (empty ($ arguments ) ? array () : $ arguments );
570
570
return array (60 , 20 , $ args );
571
571
}
572
572
0 commit comments