From 5b308a3818d46b019afb60b68b5fac6274dcb640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Mon, 28 Oct 2024 17:43:54 +0100 Subject: [PATCH] Add some type hint for statsd --- src/Client/ClientWrapper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Client/ClientWrapper.php b/src/Client/ClientWrapper.php index d38ed2b..0a2e87b 100644 --- a/src/Client/ClientWrapper.php +++ b/src/Client/ClientWrapper.php @@ -36,7 +36,7 @@ public function __construct(LoggerInterface $logger = null, ?string $instanceId /** * {@inheritdoc} */ - public function configure(array $options = []) + public function configure(array $options = []): Client { $this->options = $options; return parent::configure($options); @@ -45,7 +45,7 @@ public function configure(array $options = []) /** * {@inheritdoc} */ - public function event($title, $text, array $metadata = [], array $tags = []) + public function event($title, $text, array $metadata = [], array $tags = []): Client { if (!$this->dataDog) { return $this; @@ -97,7 +97,7 @@ public function getOptions(): array /** * {@inheritdoc} */ - protected function sendMessages(array $messages) + protected function sendMessages(array $messages): Client { if ($this->repeatCount >= self::MAX_REPEAT_COUNT) { return false;