Skip to content

Commit

Permalink
Bump vimeo/psalm from 4.6.4 to 4.7.0
Browse files Browse the repository at this point in the history
Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 4.6.4 to 4.7.0.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](vimeo/psalm@4.6.4...4.7.0)

Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] authored and LeSuisse committed Mar 30, 2021
1 parent 2528194 commit 35134cd
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 24 deletions.
44 changes: 23 additions & 21 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/Counter.php
Expand Up @@ -43,6 +43,7 @@ public function incBy(float $count, string ...$labelValues): void
throw new InvalidArgumentException(sprintf('Counter can only be incremented, %d is not positive', $count));
}

/** @psalm-suppress UnusedMethodCall */
$this->assertLabelsAreDefinedCorrectly(...$labelValues);

$this->storage->incrementCounter(
Expand Down
2 changes: 2 additions & 0 deletions src/Gauge.php
Expand Up @@ -28,6 +28,7 @@ public function __construct(GaugeStorage $storage, MetricName $name, string $hel
*/
public function set(float $value, string ...$labelValues): void
{
/** @psalm-suppress UnusedMethodCall */
$this->assertLabelsAreDefinedCorrectly(...$labelValues);

$this->storage->setGaugeTo(
Expand All @@ -52,6 +53,7 @@ public function inc(string ...$labelValues): void
*/
public function incBy(float $value, string ...$labelValues): void
{
/** @psalm-suppress UnusedMethodCall */
$this->assertLabelsAreDefinedCorrectly(...$labelValues);

$this->storage->addToGauge(
Expand Down
1 change: 1 addition & 0 deletions src/Histogram.php
Expand Up @@ -76,6 +76,7 @@ public function __construct(HistogramStorage $storage, MetricName $name, string
*/
public function observe(float $value, string ...$labelValues): void
{
/** @psalm-suppress UnusedMethodCall */
$this->assertLabelsAreDefinedCorrectly(...$labelValues);

$this->storage->updateHistogram(
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/PushGateway/PSR18PusherTest.php
Expand Up @@ -141,8 +141,6 @@ public function testExceptionIsThrownWhenRequestToPushGatewayCanNotBeSent(): voi
{
$client = new Client();

$responseFactory = Psr17FactoryDiscovery::findResponseFactory();

$client->addException(new class extends Exception implements ClientExceptionInterface {
});

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Renderer/RenderTextFormatTest.php
Expand Up @@ -83,7 +83,7 @@ public function testRenderingDoesNotSucceedWhenAllSamplesDoesNotHaveAllTheDefine
];

$this->expectException(IncoherentMetricLabelNamesAndValues::class);
$renderer->render($metrics);
self::assertEmpty($renderer->render($metrics));
}

/**
Expand Down

0 comments on commit 35134cd

Please sign in to comment.