Skip to content

Commit

Permalink
"Fix" PHPStan issues
Browse files Browse the repository at this point in the history
We cannot make both PHPStan and Psalm happy on this one for now.
I'm choosing to ignore PHPStan until we can compromise.
  • Loading branch information
LeSuisse committed Jan 28, 2021
1 parent 0955d23 commit c2f8632
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Storage/APCUStore.php
Expand Up @@ -361,11 +361,13 @@ private function collectHistograms(): array

private function toInteger(float $val): int
{
/** @phpstan-ignore-next-line */
return (int) unpack('Q', pack('d', $val))[1];
}

private function fromInteger(int $val): float
{
/** @phpstan-ignore-next-line */
return (float) unpack('d', pack('Q', $val))[1];
}

Expand Down

0 comments on commit c2f8632

Please sign in to comment.