From 49f27da771a48a63a013423f753c992cef978a9f Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Tue, 25 Jun 2019 13:54:07 +0200 Subject: [PATCH] Fix missing placeholder for sprintf --- src/Prometheus/Collector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Prometheus/Collector.php b/src/Prometheus/Collector.php index edc5e80..5de1d8e 100644 --- a/src/Prometheus/Collector.php +++ b/src/Prometheus/Collector.php @@ -69,7 +69,7 @@ public function getKey() protected function assertLabelsAreDefinedCorrectly($labels) { if (count($labels) != count($this->labels)) { - throw new \InvalidArgumentException(sprintf('Labels are not defined correctly: ', print_r($labels, true))); + throw new \InvalidArgumentException(sprintf('Labels are not defined correctly: %s', print_r($labels, true))); } } }