We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d15485 commit 48f1afaCopy full SHA for 48f1afa
src/Prometheus/Collector.php
@@ -116,8 +116,7 @@ public static function assertValidLabel(string $label): void
116
{
117
if (preg_match(self::RE_LABEL_NAME, $label) !== 1) {
118
throw new InvalidArgumentException("Invalid label name: '" . $label . "'");
119
- }
120
- else if (strpos($label, "__") === 0) {
+ } else if (strpos($label, "__") === 0) {
121
throw new InvalidArgumentException("Can't used a reserved label name: '" . $label . "'");
122
}
123
0 commit comments