Problem/Motivation
Currently if you include media_duplicates in an install profile and try to install on D9 (probably D8 as well), you'll receive the following error on the install requirements screen:
array_merge(): Expected parameter 2 to be an array, null given in drupal_check_profile()
The root of the issue appears to be that media duplicates is returning null if the requirements function is called in a phase other then 'runtime'
if ($phase !== 'runtime') {
return;
}
Drupal is always expecting at least an empty array to be returned when that function is called, so it breaks the install process.
Proposed resolution
Slightly refactor the media duplicates require function to always return an array, which is what this patch does.
| Comment | File | Size | Author |
|---|---|---|---|
| media_duplicates-fixing-requirements-return.patch | 593 bytes | jacobbell84 |
Comments
Comment #3
nterbogt commentedI'll roll a new release with this change soon. Thanks for the work.