Skip to content

[module:uninstall] Deprecated each() function  #3908

@ranqiangjun

Description

@ranqiangjun

Problem/Motivation

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in Drupal\Console\Command\Module\UninstallCommand->execute() (line 182 of /var/www/html/vendor/drupal/console/src/Command/Module/UninstallCommand.php)

Releted Drupal core issue: [PHP 7.2] each() function is deprecated, https://www.drupal.org/project/drupal/issues/2885309

How to reproduce

run drupal mou MODULE_NAME

Details to include:

  • Console version

1.8.0

Solution

Use foreach

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions