Skip to content

Commit e03c15a

Browse files
committed
Fixed docblock for publish
1 parent 23464e2 commit e03c15a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Producer/IProducer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface IProducer
1010
public const DeliveryModePersistent = 2;
1111

1212
/**
13-
* @param array<string, string|int> $headers
13+
* @param array<string, scalar|null|\DateTimeInterface|array<string, scalar|null|\DateTimeInterface>> $headers
1414
*/
1515
public function publish(string $message, array $headers = [], ?string $routingKey = null): void;
1616
public function addOnPublishCallback(callable $callback): void;

src/Producer/Producer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(
3131
}
3232

3333
/**
34-
* @param array<string, string|int> $headers
34+
* @param array<string, scalar|null|\DateTimeInterface|array<string, scalar|null|\DateTimeInterface>> $headers
3535
* @throws Exception
3636
*/
3737
public function publish(string $message, array $headers = [], ?string $routingKey = null): void
@@ -71,7 +71,7 @@ private function getBasicHeaders(): array
7171

7272

7373
/**
74-
* @param array<string, string|int> $headers
74+
* @param array<string, scalar|null|\DateTimeInterface|array<string, scalar|null|\DateTimeInterface>> $headers
7575
* @throws Exception
7676
*/
7777
private function tryPublish(IQueue|IExchange $target, string $message, array $headers, string $exchange, string $routingKey, int $try = 0): void

0 commit comments

Comments
 (0)