Skip to content

Commit

Permalink
Fix static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Aug 21, 2024
1 parent 7f2c04a commit ed51bc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storage/DatabaseStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ public function store(Collection $items): void
$averageChunks = $this->preaggregateAverages(collect($averages)) // @phpstan-ignore argument.templateType, argument.templateType
->chunk($this->config->get('pulse.storage.database.chunk'));

$valueChunks = $this // @phpstan-ignore argument.templateType
$valueChunks = $this // @phpstan-ignore method.nonObject
->collapseValues($values)
->when(
$this->requiresManualKeyHash(),
fn ($values) => $values->map(fn ($value) => [
...($attributes = $value->attributes()),
'key_hash' => md5($attributes['key']),
]),
fn ($values) => $values->map->attributes() // @phpstan-ignore method.notFound
fn ($values) => $values->map->attributes()
)
->chunk($this->config->get('pulse.storage.database.chunk'));

Expand Down

0 comments on commit ed51bc4

Please sign in to comment.