Problem/Motivation
When the Role Test Accounts module is enabled through configuration management (for example: `drush cim`), the module generates notices in the command line output.
[warning] array_values() expects parameter 1 to be array, null given RoleTestAccountsManager.php:99
[warning] array_values() expects parameter 1 to be array, null given RoleTestAccountsManager.php:106
[warning] array_diff(): Expected parameter 1 to be an array, null given RoleTestAccountsManager.php:109
[warning] Invalid argument supplied for foreach() RoleTestAccountsManager.php:109
[warning] array_diff(): Expected parameter 1 to be an array, null given RoleTestAccountsManager.php:113
[warning] Invalid argument supplied for foreach() RoleTestAccountsManager.php:113
Steps to reproduce
Enable role_test_accounts through configuration management
Proposed resolution
Implement sanity checks to prevent notices when role_test_accounts is enabled through configuration management
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3223273-2.patch | 934 bytes | idebr |
Comments
Comment #2
idebr commentedComment #3
idebr commentedAttached patch implements sanity checks to prevent notices when role_test_accounts is enabled through configuration management
Comment #5
idebr commentedCommitted.