Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Sep 7, 2022

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.

None yet

2 participants