Skip to content

Commit

Permalink
Added PHPStan ignore error lines
Browse files Browse the repository at this point in the history
  • Loading branch information
drieschel committed Oct 26, 2023
1 parent ab3ba7a commit 31eb85e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Prometheus/CollectorRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function wipeStorage(): void
*/
public function getMetricFamilySamples(bool $sortMetrics = true): array
{
return $this->storageAdapter->collect($sortMetrics);
return $this->storageAdapter->collect($sortMetrics); /** @phpstan-ignore-line */
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Prometheus/Storage/RedisNg.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ private function collectHistograms(): array
*
* @return string
*/
private function removePrefixFromKey(string $key): string
private function removePrefixFromKey(string $key): string /** @phpstan-ignore-line */
{
// @phpstan-ignore-next-line false positive, phpstan thinks getOptions returns int
if ($this->redis->getOption(\Redis::OPT_PREFIX) === null) {
Expand Down

0 comments on commit 31eb85e

Please sign in to comment.