From b84e79d7fc79a09347e12beef07509008942b12a Mon Sep 17 00:00:00 2001 From: Dendy Faist Date: Mon, 1 Sep 2025 05:00:38 +0200 Subject: [PATCH] fix: a:c:l command unset reference to prevent type-changing side effect --- src/Command/CreateProductionCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Command/CreateProductionCommand.php b/src/Command/CreateProductionCommand.php index 7a60624..52ba6d2 100644 --- a/src/Command/CreateProductionCommand.php +++ b/src/Command/CreateProductionCommand.php @@ -133,6 +133,8 @@ class CreateProductionCommand extends Command foreach (self::extractKanji($term->getKanji()) as $kanji) { $knownKanji[$kanji] = 0; } + // Please put me into a function + unset($term); // Prevent things being reassigned } } printf(" OK (%d)\n", count($knownKanji));