Skip to content

Commit 9b4850a

Browse files
authored
Avoid BC in Adapter and RegistryInterface for sorting metrics (#118)
Signed-off-by: Javier Espinosa <javespalf@gmail.com> Signed-off-by: Javier Espinosa <javierespinosa@spotahome.com>
1 parent dce4295 commit 9b4850a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Prometheus/RegistryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function wipeStorage(): void;
1717
/**
1818
* @return MetricFamilySamples[]
1919
*/
20-
public function getMetricFamilySamples(bool $sortMetrics = true): array;
20+
public function getMetricFamilySamples(): array;
2121

2222
/**
2323
* @param string $namespace e.g. cms

src/Prometheus/Storage/Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface Adapter
1616
/**
1717
* @return MetricFamilySamples[]
1818
*/
19-
public function collect(bool $sortMetrics = true): array;
19+
public function collect(): array;
2020

2121
/**
2222
* @param mixed[] $data

0 commit comments

Comments
 (0)