Skip to content

Commit 8564d6b

Browse files
authored
Fix Gauge::decby value type (#51)
Signed-off-by: Artem Beliankin <[email protected]>
1 parent d0ca3f7 commit 8564d6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Prometheus/Gauge.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ public function dec(array $labels = []): void
7777
}
7878

7979
/**
80-
* @param int $value
80+
* @param int|float $value
8181
* @param string[] $labels
8282
*/
83-
public function decBy(int $value, array $labels = []): void
83+
public function decBy($value, array $labels = []): void
8484
{
8585
$this->incBy(-$value, $labels);
8686
}

0 commit comments

Comments
 (0)