diff --git a/src/Commands/PathautoCommands.php b/src/Commands/PathautoCommands.php index f1ac893..17b3a90 100644 --- a/src/Commands/PathautoCommands.php +++ b/src/Commands/PathautoCommands.php @@ -159,7 +159,7 @@ class PathautoCommands extends DrushCommands { foreach ($types as $type) { /** @var \Drupal\pathauto\AliasTypeInterface $alias_type */ $alias_type = $this->aliasTypeManager->createInstance($type); - $this->aliasStorageHelper->deleteBySourcePrefix((string) $alias_type->getSourcePrefix()); + $this->aliasStorageHelper->deleteBySourcePrefix($alias_type->getSourcePrefix()); $this->logger()->success(dt('All of your %label path aliases have been deleted.', [ '%label' => $alias_type->getLabel(), ]));