fix: a:c:l command unset reference to prevent type-changing side effect

This commit is contained in:
Dendy 2025-09-01 05:00:38 +02:00
parent d9acca0b54
commit b84e79d7fc
1 changed files with 2 additions and 0 deletions

View File

@ -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));