From 11e69c39bf1f4fb6b137c5387cf124bdf98f20f3 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 20 Aug 2026 20:41:10 +0700 Subject: [PATCH 1/3] Update boundwize/structarmed version to ^0.16 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5504bde1..52eb1eba 100644 --- a/composer.json +++ b/composer.json @@ -56,7 +56,7 @@ "laminas/laminas-mvc-console": "*" }, "require-dev": { - "boundwize/structarmed": "^0.15", + "boundwize/structarmed": "^0.16", "doctrine/dbal": "^3.10.4", "doctrine/doctrine-orm-module": "^6.3.0", "guzzlehttp/promises": "^2.3", From c108af748cb8397ec38c7916051f0ebdd2ac0aca Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 20 Aug 2026 21:01:31 +0700 Subject: [PATCH 2/3] rectify --- rector.php | 5 +++++ src/Compat/Logger.php | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/rector.php b/rector.php index 3ebba6c1..90717249 100644 --- a/rector.php +++ b/rector.php @@ -3,6 +3,7 @@ declare(strict_types=1); use Rector\Config\RectorConfig; +use Rector\DeadCode\Rector\Property\RemoveDefaultValueFromAssignedPropertyRector; use Rector\Php81\Rector\Array_\ArrayToFirstClassCallableRector; return RectorConfig::configure() @@ -23,4 +24,8 @@ __DIR__ . '/src/Command/Preview', __DIR__ . '/src/Middleware/Routed/Preview', ArrayToFirstClassCallableRector::class, + + RemoveDefaultValueFromAssignedPropertyRector::class => [ + __DIR__ . '/src/Handler/Logging.php', + ], ]); diff --git a/src/Compat/Logger.php b/src/Compat/Logger.php index 31533275..ac898af1 100644 --- a/src/Compat/Logger.php +++ b/src/Compat/Logger.php @@ -465,7 +465,9 @@ public function log($priority, $message, $extra = []): static throw new InvalidArgumentException( '$extra must be an array or implement Traversable' ); - } elseif ($extra instanceof Traversable) { + } + + if ($extra instanceof Traversable) { $extra = ArrayUtils::iteratorToArray($extra); } From 293d2ad1530c9f87684d776ea9e8efdb209ac421 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 20 Aug 2026 21:01:43 +0700 Subject: [PATCH 3/3] cs fix --- rector.php | 1 - 1 file changed, 1 deletion(-) diff --git a/rector.php b/rector.php index 90717249..f306aa1b 100644 --- a/rector.php +++ b/rector.php @@ -24,7 +24,6 @@ __DIR__ . '/src/Command/Preview', __DIR__ . '/src/Middleware/Routed/Preview', ArrayToFirstClassCallableRector::class, - RemoveDefaultValueFromAssignedPropertyRector::class => [ __DIR__ . '/src/Handler/Logging.php', ],