Error running drush cpex without parameters (array)

Created on 1 July 2021, over 3 years ago
Updated 9 September 2023, about 1 year ago

Problem/Motivation

Running drush cpex without parameters (which is wrong but shouldn't run into such an error), runs into an error!

Steps to reproduce

drush cpex

[warning] array_keys() expects parameter 1 to be array, null given ConfigPartialExportCommands.php:110
[warning] Use of undefined constant CONFIG_ACTIVE_DIRECTORY - assumed 'CONFIG_ACTIVE_DIRECTORY' (this will throw an Error in a future version of PHP) ConfigPartialExportCommands.php:111
[warning] Use of undefined constant CONFIG_SYNC_DIRECTORY - assumed 'CONFIG_SYNC_DIRECTORY' (this will throw an Error in a future version of PHP) ConfigPartialExportCommands.php:126
[,,,]

Proposed resolution

Check if an argument was given and is array by !empty()

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024