From 093cae42ed44721dc2334aaf52f994bb430c789d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sat, 1 Jul 2023 01:34:36 +0200 Subject: [PATCH] Fix phpstan --- src/Table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Table.php b/src/Table.php index 2cb4e3f866..4129290d99 100644 --- a/src/Table.php +++ b/src/Table.php @@ -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':