1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-08 06:06:40 +02:00

Fix phpstan errors

This commit is contained in:
Jordi Boggiano
2022-07-22 13:15:11 +02:00
parent 3734f190f8
commit 11be0a4b30

View File

@@ -27,11 +27,11 @@ class AmqpHandler extends AbstractProcessingHandler
* @var AMQPExchange|AMQPChannel $exchange * @var AMQPExchange|AMQPChannel $exchange
*/ */
protected $exchange; protected $exchange;
/** @var array */ /** @var array<string, mixed> */
private $extraAttributes = []; private $extraAttributes = [];
/** /**
* @return array * @return array<string, mixed>
*/ */
public function getExtraAttributes(): array public function getExtraAttributes(): array
{ {
@@ -39,7 +39,9 @@ class AmqpHandler extends AbstractProcessingHandler
} }
/** /**
* @param array $extraAttributes One of content_type, content_encoding, * Configure extra attributes to pass to the AMQPExchange (if you are using the amqp extension)
*
* @param array<string, mixed> $extraAttributes One of content_type, content_encoding,
* message_id, user_id, app_id, delivery_mode, * message_id, user_id, app_id, delivery_mode,
* priority, timestamp, expiration, type * priority, timestamp, expiration, type
* or reply_to, headers. * or reply_to, headers.