Skip to content

Commit

Permalink
Add some type hint for statsd
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Oct 28, 2024
1 parent 675f2bf commit 5b308a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Client/ClientWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5b308a3

Please sign in to comment.