Error running drush cpex without parameters (array)

Created on 1 July 2021, almost 3 years ago
Updated 9 September 2023, 10 months 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.69.0 2024