diff --git a/src/Prometheus/RegistryInterface.php b/src/Prometheus/RegistryInterface.php index 28255a27..a66ae5e6 100644 --- a/src/Prometheus/RegistryInterface.php +++ b/src/Prometheus/RegistryInterface.php @@ -17,7 +17,7 @@ public function wipeStorage(): void; /** * @return MetricFamilySamples[] */ - public function getMetricFamilySamples(bool $sortMetrics = true): array; + public function getMetricFamilySamples(): array; /** * @param string $namespace e.g. cms diff --git a/src/Prometheus/Storage/Adapter.php b/src/Prometheus/Storage/Adapter.php index 593b09a1..fc39dd81 100644 --- a/src/Prometheus/Storage/Adapter.php +++ b/src/Prometheus/Storage/Adapter.php @@ -16,7 +16,7 @@ interface Adapter /** * @return MetricFamilySamples[] */ - public function collect(bool $sortMetrics = true): array; + public function collect(): array; /** * @param mixed[] $data