diff --git a/modules/helfi_tpr_config/src/Drush/Commands/RemoveNonHelsinkiTPRUnitsCommands.php b/modules/helfi_tpr_config/src/Drush/Commands/RemoveNonHelsinkiTPRUnitsCommands.php index e8fa3fd9f..42fa139fd 100644 --- a/modules/helfi_tpr_config/src/Drush/Commands/RemoveNonHelsinkiTPRUnitsCommands.php +++ b/modules/helfi_tpr_config/src/Drush/Commands/RemoveNonHelsinkiTPRUnitsCommands.php @@ -56,7 +56,7 @@ public function remove() : void { /** @var \Drupal\helfi_tpr\Entity\Unit $unit */ $unit = $this->entityTypeManager->getStorage('tpr_unit')->load($unit_id); - $this->output()->writeln($this->t('Deleting "@unit_label"', ['@unit_label' => $unit->label()])); + $this->output()->writeln((string) $this->t('Deleting "@unit_label"', ['@unit_label' => $unit->label()])); // Release content lock if needed. if ($this->contentLock->fetchLock($unit->id(), $unit->language()->getId(), entity_type: 'tpr_unit')) {