Skip to content
Permalink
Browse files

Update outdated docblocks

  • Loading branch information...
LeSuisse committed Aug 23, 2019
1 parent de5e5f7 commit b83a1b6e40be22f189b1d413b98cb032bdd09d56
Showing with 3 additions and 5 deletions.
  1. +2 −2 src/Registry/Registry.php
  2. +1 −3 src/Storage/InMemoryStore.php
@@ -55,7 +55,7 @@ public function getOrRegisterCounter(MetricName $name, string $help, ?MetricLabe
/**
* @param string $help e.g. A histogram of the duration in seconds.
* @param HistogramLabelNames|null $labels e.g. ['controller', 'action']
* @param HistogramLabelNames|null $labelNames e.g. ['controller', 'action']
* @param float[] $buckets e.g. [100, 200, 300]
*
* @throws MetricsRegistrationException
@@ -69,7 +69,7 @@ public function getHistogram(MetricName $name) : Histogram;
/**
* @param string $help e.g. A histogram of the duration in seconds.
* @param HistogramLabelNames|null $labels e.g. ['controller', 'action']
* @param HistogramLabelNames|null $labelNames e.g. ['controller', 'action']
* @param float[] $buckets e.g. [100, 200, 300]
*/
public function getOrRegisterHistogram(MetricName $name, string $help, ?HistogramLabelNames $labelNames = null, ?array $buckets = null) : Histogram;
@@ -32,7 +32,7 @@ final class InMemoryStore implements Store, CounterStorage, GaugeStorage, Histog
/** @var array<string,mixed> */
private $gauges = [];
/**
* @var array<string,string[]>
* @var array<string,string[][]>
* @psalm-var array<string, array{
* meta: array{name:string, help:string, labelNames:string[], buckets:array<int|float>},
* samples: array<string, float>
@@ -306,8 +306,6 @@ private function valueKey(MetricName $name, array $labelValues) : string
}
/**
* @param array<int|float> $buckets
*
* @return array<string,string|array>
*
* @psalm-return array{name:string, help:string, labelNames:string[]}

0 comments on commit b83a1b6

Please sign in to comment.
You can’t perform that action at this time.