From 4aa306db2f5ea2fb6617ec0b68935d0a38ded2db Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Tue, 6 Oct 2026 18:12:04 +0200 Subject: [PATCH] Update to PHPStan 2.3 Co-Authored-By: Claude Opus 5.5 (1M context) --- .phive/phars.xml | 2 +- src/Command/RollbackCommand.php | 1 - src/Db/Table.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.phive/phars.xml b/.phive/phars.xml index 848f478f..e116501f 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,4 +1,4 @@ - + diff --git a/src/Command/RollbackCommand.php b/src/Command/RollbackCommand.php index 60051062..bf45b0a7 100644 --- a/src/Command/RollbackCommand.php +++ b/src/Command/RollbackCommand.php @@ -235,7 +235,6 @@ protected function getTargetFromDate(string|bool $date): string 4 => '0101000000', ]; - /** @var string $date */ $dateLength = strlen($date); if (!isset($dateStrlenToAppend[$dateLength])) { throw new InvalidArgumentException('Invalid date. Format is YYYY[MM[DD[HH[II[SS]]]]].'); diff --git a/src/Db/Table.php b/src/Db/Table.php index ee68e53d..1d5487c3 100644 --- a/src/Db/Table.php +++ b/src/Db/Table.php @@ -1186,7 +1186,7 @@ protected function executeActions(bool $exists): void } // Only skip CreateTable if we have ONLY view/trigger actions (and at least one) - if (!$hasViewOrTriggerActions || $hasTableActions || $actions === []) { + if (!$hasViewOrTriggerActions || $hasTableActions) { $this->actions->addAction(new CreateTable($this->table)); } }