diff --git a/src/Drupal/Commands/core/DeployHookCommands.php b/src/Drupal/Commands/core/DeployHookCommands.php index 3e387439f9..08f36a57bf 100644 --- a/src/Drupal/Commands/core/DeployHookCommands.php +++ b/src/Drupal/Commands/core/DeployHookCommands.php @@ -174,7 +174,7 @@ public static function updateDoOneDeployHook(string $function, DrushBatchContext // Module names can include '_deploy', so deploy functions like // module_deploy_deploy_name() are ambiguous. Check every occurrence. $components = explode('_', $function); - foreach (array_keys($components, 'deploy', TRUE) as $position) { + foreach (array_keys($components, 'deploy', true) as $position) { $module = implode('_', array_slice($components, 0, $position)); $name = implode('_', array_slice($components, $position + 1)); $filename = $module . '.deploy'; diff --git a/src/Drupal/Commands/core/EntityCommands.php b/src/Drupal/Commands/core/EntityCommands.php index 06b80ebd1d..cf43e03db2 100644 --- a/src/Drupal/Commands/core/EntityCommands.php +++ b/src/Drupal/Commands/core/EntityCommands.php @@ -172,7 +172,7 @@ protected function getQuery(string $entity_type, ?string $ids, array $options): $idKey = $this->entityTypeManager->getDefinition($entity_type)->getKey('id'); $query = $query->condition($idKey, $ids, 'IN'); } elseif ($options['bundle'] || $options['exclude']) { - if ($exclude = StringUtils::csvToArray($options['exclude'])) { + if ($exclude = StringUtils::csvToArray((string) $options['exclude'])) { $idKey = $this->entityTypeManager->getDefinition($entity_type)->getKey('id'); $query = $query->condition($idKey, $exclude, 'NOT IN'); }