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