Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jun 30, 2023
1 parent a0d07d7 commit 093cae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ public function updateTotals(): void
}

if ($f instanceof \Closure) {
$this->totals[$key] += ($f($this->model->get($key), $key, $this) ?? 0);
$this->totals[$key] += $f($this->model->get($key), $key, $this);
} elseif (is_string($f)) {
switch ($f) {
case 'sum':
Expand Down

0 comments on commit 093cae4

Please sign in to comment.