Skip to content
Permalink
Browse files

Bump vimeo/psalm from 3.5.1 to 3.5.2

Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 3.5.1 to 3.5.2.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Changelog](https://github.com/vimeo/psalm/blob/master/CHANGELOG.md)
- [Commits](vimeo/psalm@3.5.1...3.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
  • Loading branch information...
dependabot-preview authored and LeSuisse committed Sep 26, 2019
1 parent e6b7151 commit 184434407817d7c7d0c63e24fb9b8fcf6886f931
Showing with 23 additions and 13 deletions.
  1. +13 −12 composer.lock
  2. +10 −1 src/Metric.php

Some generated files are not rendered by default. Learn more.

@@ -13,7 +13,6 @@
/**
* @template TLabelNames of LabelNames
* @psalm-immutable
*/
abstract class Metric
{
@@ -37,24 +36,34 @@ public function __construct(MetricName $name, string $help, LabelNames $labelNam
$this->labelNames = $labelNames;
}
/**
* @psalm-pure
*/
public function getName() : MetricName
{
return $this->name;
}
/**
* @psalm-return TLabelNames
* @psalm-pure
*/
public function getLabelNames() : LabelNames
{
return $this->labelNames;
}
/**
* @psalm-pure
*/
public function getHelp() : string
{
return $this->help;
}
/**
* @psalm-pure
*/
final protected function assertLabelsAreDefinedCorrectly(string ...$labelValues) : void
{
if (count($labelValues) !== count($this->labelNames)) {

0 comments on commit 1844344

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