Skip to content

Ensure all $args to csvToArray() are strings#5223

Merged
weitzman merged 1 commit into11.xfrom
ensure-string-csvToArray
Sep 7, 2022
Merged

Ensure all $args to csvToArray() are strings#5223
weitzman merged 1 commit into11.xfrom
ensure-string-csvToArray

Conversation

@claudiu-cristea
Copy link
Member

I'm getting

[error]  Message: Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in Drush\Utils\StringUtils::csvToArray() (line 25 of vendor/drush/drush/src/Utils/StringUtils.php).
Drush\Utils\StringUtils::csvToArray(NULL) (Line: 175)
Drush\Drupal\Commands\core\EntityCommands->getQuery('taxonomy_term', Array, Array) (Line: 56)
Drush\Drupal\Commands\core\EntityCommands->delete('taxonomy_term', NULL, Array)

The reason is that $options['exclude'] is passed as null to StringUtils::csvToArray().

Let's make StringUtils::csvToArray() strong

@weitzman weitzman merged commit 0e332eb into 11.x Sep 7, 2022
@weitzman weitzman deleted the ensure-string-csvToArray branch September 7, 2022 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants