From 3269814635e273455855ca9feadf9b65fb5c9515 Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Tue, 6 Oct 2026 18:11:59 +0200 Subject: [PATCH] Update to PHPStan 2.3 Co-Authored-By: Claude Opus 5.5 (1M context) --- .phive/phars.xml | 2 +- src/Log/Engine/DebugKitLog.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.phive/phars.xml b/.phive/phars.xml index f648a9f74..da2b40aef 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,5 +1,5 @@ - + diff --git a/src/Log/Engine/DebugKitLog.php b/src/Log/Engine/DebugKitLog.php index 32416a3d3..531c7b181 100644 --- a/src/Log/Engine/DebugKitLog.php +++ b/src/Log/Engine/DebugKitLog.php @@ -62,7 +62,7 @@ public function all(): array */ public function count(): int { - return array_reduce($this->_logs, function ($sum, $v) { + return array_reduce($this->_logs, function (int $sum, array $v): int { return $sum + count($v); }, 0); }