Skip to content

Commit 37cd23d

Browse files
authored
make setDefaultTags public (#6)
1 parent f5b52ee commit 37cd23d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/Adapters/Concerns/HasDefaultTagsTrait.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ public function getDefaultTags(): array
1515
}
1616

1717
/**
18-
* @param array<string, mixed> $tags
19-
* @return void
18+
* @inheritDoc
2019
*/
21-
protected function setDefaultTags(array $defaultTags = []): void
20+
public function setDefaultTags(array $defaultTags = []): void
2221
{
2322
$this->defaultTags = $defaultTags;
2423
}

src/Adapters/StatsDClientAdapter.php

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ public function updateStats(array|string $stats, int $delta = 1, $sampleRate = 1
2222

2323
public function getClient(): mixed;
2424

25+
/**
26+
* @param array<string, mixed> $tags
27+
* @return void
28+
*/
29+
public function setDefaultTags(array $defaultTags = []): void;
30+
2531
/**
2632
* @return array<string, mixed>
2733
*/

0 commit comments

Comments
 (0)