Skip to content

Commit 31878bf

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Fix CS Fix CS
2 parents 2948a18 + 711b1e2 commit 31878bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CacheTrait.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ public function delete(string $key): bool
4141
private function doGet(CacheItemPoolInterface $pool, string $key, callable $callback, ?float $beta, array &$metadata = null, LoggerInterface $logger = null)
4242
{
4343
if (0 > $beta = $beta ?? 1.0) {
44-
throw new class(sprintf('Argument "$beta" provided to "%s::get()" must be a positive number, %f given.', \get_class($this), $beta)) extends \InvalidArgumentException implements InvalidArgumentException {
45-
};
44+
throw new class(sprintf('Argument "$beta" provided to "%s::get()" must be a positive number, %f given.', static::class, $beta)) extends \InvalidArgumentException implements InvalidArgumentException { };
4645
}
4746

4847
$item = $pool->getItem($key);

0 commit comments

Comments
 (0)