- Issue created by @byrond
When FieldInheritanceHooks::entityBaseFieldInfo() runs, it generates the following error:
TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /var/www/html/web/modules/contrib/field_inheritance/src/Hook/FieldInheritanceHooks.php on line 82 #0 /var/www/html/web/modules/contrib/field_inheritance/src/Hook/FieldInheritanceHooks.php(82): in_array()
This is due to the fact that the list of included entities is imploded into a comma-separated list when saving to config but not exploded again after reading from config.
Ensure a value is set for "field_inheritance.config:included_entities"
Execute "drush cim".
The command fails with the error above.
Explode the included_entities value into an array before calling in_array()
Active
3.0
Code