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

Warning in PHP 8.1 when passing the bundle and no exclude options #5219

Merged
merged 2 commits into from Sep 4, 2022

Conversation

claudiu-cristea
Copy link
Member

Run:

./vendor/bin/drush entity:delete –bundle topic

In PHP 8.1 will get:

[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)

Copy link
Member

@weitzman weitzman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Feel free to merge when you are satisfied. Thanks.

@claudiu-cristea claudiu-cristea enabled auto-merge (squash) September 4, 2022 13:33
@claudiu-cristea
Copy link
Member Author

@weitzman I cannot merge it because of the failure. But that doesn't seem to be related to this PR

@weitzman weitzman merged commit 828aa21 into 11.x Sep 4, 2022
@weitzman weitzman deleted the entity-commands-php8.1-warning branch September 4, 2022 15:41
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