Skip to content

Commit

Permalink
fix(collector): Make CollectorFactory::summary final by annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
zlodes committed Dec 27, 2023
1 parent 981aa54 commit 97bf265
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Collector/CollectorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,16 @@ public function histogram(string $histogramName): HistogramCollector
}

/**
* @final
*
* @param non-empty-string $summaryName
*
* @return SummaryCollector
*
* @throws MetricNotFoundException
* @throws MetricHasWrongTypeException
*/
final public function summary(string $summaryName): SummaryCollector
public function summary(string $summaryName): SummaryCollector
{
$summary = $this->registry->getMetric($summaryName, Summary::class);

Expand Down

0 comments on commit 97bf265

Please sign in to comment.