Skip to content

Commit

Permalink
Update outdated docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSuisse committed Aug 23, 2019
1 parent de5e5f7 commit b83a1b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Registry/Registry.php
Expand Up @@ -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
Expand All @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions src/Storage/InMemoryStore.php
Expand Up @@ -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>
Expand Down Expand Up @@ -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[]}
Expand Down

0 comments on commit b83a1b6

Please sign in to comment.