Skip to content

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

Merged
weitzman merged 2 commits into11.xfrom
entity-commands-php8.1-warning
Sep 4, 2022
Merged

Warning in PHP 8.1 when passing the bundle and no exclude options#5219
weitzman merged 2 commits into11.xfrom
entity-commands-php8.1-warning

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.

2 participants