intelephense
1.14.41.16.1
lib/stub/amqp/amqp.phplib/stub/amqp/amqp.php+37−37
Index: package/lib/stub/amqp/amqp.php
===================================================================
--- package/lib/stub/amqp/amqp.php
+++ package/lib/stub/amqp/amqp.php
@@ -936,9 +936,9 @@
/**
* Set path to the CA cert file in PEM format
*
- * @param string $cacert
+ * @param string|null $cacert
*
* @return void
*/
public function setCACert($cacert) {}
@@ -952,9 +952,9 @@
/**
* Set path to the client certificate in PEM format
*
- * @param string $cert
+ * @param string|null $cert
*
* @return void
*/
public function setCert($cert) {}
@@ -1161,36 +1161,36 @@
* Bind to another exchange.
*
* Bind an exchange to another exchange using the specified routing key.
*
- * @param string $exchangeName Name of the exchange to bind.
- * @param string $routingKey The routing key to use for binding.
- * @param array $arguments Additional binding arguments.
+ * @param string $exchangeName Name of the exchange to bind.
+ * @param string|null $routingKey The routing key to use for binding.
+ * @param array $arguments Additional binding arguments.
*
* @throws AMQPExchangeException On failure.
* @throws AMQPChannelException If the channel is not open.
* @throws AMQPConnectionException If the connection to the broker was lost.
*
* @return void
*/
- public function bind($exchangeName, $routingKey = '', array $arguments = []) {}
+ public function bind($exchangeName, $routingKey = null, array $arguments = []) {}
/**
* Remove binding to another exchange.
*
* Remove a routing key binding on an another exchange from the given exchange.
*
- * @param string $exchangeName Name of the exchange to bind.
- * @param string $routingKey The routing key to use for binding.
- * @param array $arguments Additional binding arguments.
+ * @param string $exchangeName Name of the exchange to bind.
+ * @param string|null $routingKey The routing key to use for binding.
+ * @param array $arguments Additional binding arguments.
*
* @throws AMQPExchangeException On failure.
* @throws AMQPChannelException If the channel is not open.
* @throws AMQPConnectionException If the connection to the broker was lost.
*
* @return void
*/
- public function unbind($exchangeName, $routingKey = '', array $arguments = []) {}
+ public function unbind($exchangeName, $routingKey = null, array $arguments = []) {}
/**
* Declare a new exchange on the broker.
*
@@ -1215,21 +1215,21 @@
/**
* Delete the exchange from the broker.
*
- * @param string $exchangeName Optional name of exchange to delete.
- * @param int $flags Optionally AMQP_IFUNUSED can be specified
- * to indicate the exchange should not be
- * deleted until no clients are connected to
- * it.
+ * @param string|null $exchangeName Optional name of exchange to delete.
+ * @param int|null $flags Optionally AMQP_IFUNUSED can be specified
+ * to indicate the exchange should not be
+ * deleted until no clients are connected to
+ * it.
*
* @throws AMQPExchangeException On failure.
* @throws AMQPChannelException If the channel is not open.
* @throws AMQPConnectionException If the connection to the broker was lost.
*
* @return void
*/
- public function delete($exchangeName = null, $flags = AMQP_NOPARAM) {}
+ public function delete($exchangeName = null, $flags = null) {}
/**
* Get the argument associated with the given key.
* Get the argument associated with the given key.
@@ -1310,10 +1310,10 @@
/**
* Set the value for the given key.
*
- * @param string $argumentName Name of the argument to set.
- * @param string|int $argumentValue Value of the argument to set.
+ * @param string $argumentName Name of the argument to set.
+ * @param bool|int|float|string|null $argumentValue Value of the argument to set.
*
* @return void
*/
public function setArgument($argumentName, $argumentValue) {}
@@ -1329,9 +1329,9 @@
* Set all arguments on the exchange.
*
* @param array $arguments An array of key/value pairs of arguments.
*
- * @return bool TRUE on success or FALSE on failure.
+ * @return void
*/
public function setArguments(array $arguments) {}
/**
@@ -1348,9 +1348,9 @@
/**
* Set the name of the exchange.
*
- * @param string $exchangeName The name of the exchange to set as string.
+ * @param string|null $exchangeName The name of the exchange to set as string.
*
* @return void
*/
public function setName($exchangeName) {}
@@ -1360,9 +1360,9 @@
*
* Set the type of the exchange. This can be any of AMQP_EX_TYPE_DIRECT,
* AMQP_EX_TYPE_FANOUT, AMQP_EX_TYPE_HEADERS or AMQP_EX_TYPE_TOPIC.
*
- * @param string $exchangeType The type of exchange as a string.
+ * @param string|null $exchangeType The type of exchange as a string.
*
* @return void
*/
public function setType($exchangeType) {}
@@ -1431,9 +1431,9 @@
*
* @throws AMQPChannelException If the channel is not open.
* @throws AMQPConnectionException If the connection to the broker was lost.
*
- * @return bool
+ * @return void
*/
public function bind($exchangeName, $routingKey = null, array $arguments = []) {}
/**
@@ -1450,9 +1450,9 @@
*
* @throws AMQPChannelException If the channel is not open.
* @throws AMQPConnectionException If the connection to the broker was lost.
*
- * @return bool
+ * @return void
*/
public function cancel($consumer_tag = '') {}
/**
@@ -1526,9 +1526,9 @@
* Delete a queue from the broker.
*
* This includes its entire contents of unread or unacknowledged messages.
*
- * @param int $flags Optionally AMQP_IFUNUSED can be specified
+ * @param int|null $flags Optionally AMQP_IFUNUSED can be specified
* to indicate the queue should not be
* deleted until no clients are connected to
* it.
*
@@ -1536,9 +1536,9 @@
* @throws AMQPConnectionException If the connection to the broker was lost.
*
* @return int The number of deleted messages.
*/
- public function delete($flags = AMQP_NOPARAM) {}
+ public function delete($flags = null) {}
/**
* Retrieve the next message from the queue.
*
@@ -1549,13 +1549,13 @@
* AMQP_AUTOACK. If this flag is passed in, then the message returned will
* automatically be marked as acknowledged by the broker as soon as the
* frames are sent to the client.
*
- * @param int $flags A bitmask of supported flags for the
- * method call. Currently, the only the
- * supported flag is AMQP_AUTOACK. If this
- * value is not provided, it will use the
- * value of ini-setting amqp.auto_ack.
+ * @param int|null $flags A bitmask of supported flags for the
+ * method call. Currently, the only the
+ * supported flag is AMQP_AUTOACK. If this
+ * value is not provided, it will use the
+ * value of ini-setting amqp.auto_ack.
*
* @throws AMQPChannelException If the channel is not open.
* @throws AMQPConnectionException If the connection to the broker was lost.
* @throws AMQPQueueException If queue is not exist.
@@ -1592,18 +1592,18 @@
* behavior of calling this method while connected to any other broker is
* undefined.
*
* @param int $deliveryTag Delivery tag of last message to reject.
- * @param int $flags AMQP_REQUEUE to requeue the message(s),
+ * @param int|null $flags AMQP_REQUEUE to requeue the message(s),
* AMQP_MULTIPLE to nack all previous
* unacked messages as well.
*
* @throws AMQPChannelException If the channel is not open.
* @throws AMQPConnectionException If the connection to the broker was lost.
*
- * @return bool
+ * @return void
*/
- public function nack($deliveryTag, $flags = AMQP_NOPARAM) {}
+ public function nack($deliveryTag, $flags = null) {}
/**
* Mark one message as explicitly not acknowledged.
*
@@ -1618,9 +1618,9 @@
*
* @throws AMQPChannelException If the channel is not open.
* @throws AMQPConnectionException If the connection to the broker was lost.
*
- * @return bool
+ * @return void
*/
public function reject($deliveryTag, $flags = null) {}
/**
@@ -1707,18 +1707,18 @@
* @param int|null $flags A bitmask of flags:
* AMQP_DURABLE, AMQP_PASSIVE,
* AMQP_EXCLUSIVE, AMQP_AUTODELETE.
*
- * @return bool
+ * @return void
*/
public function setFlags($flags = null) {}
/**
* Set the queue name.
*
* @param string $name The name of the queue.
*
- * @return bool
+ * @return void
*/
public function setName($name) {}
/**
@@ -1732,9 +1732,9 @@
*
* @throws AMQPChannelException If the channel is not open.
* @throws AMQPConnectionException If the connection to the broker was lost.
*
- * @return bool
+ * @return void
*/
public function unbind($exchangeName, $routingKey = null, array $arguments = []) {}
/**