After installing the current version (5.1.0) of generic_gallery with PHP 7.4 and Typo3 11 the following warning is shown in case no name was given in the Typoscript setup:
PHP Warning: Undefined array key "icon" in ext/generic_gallery/Classes/Backend/Hooks/TcaHook.php line 67)
After installing the current version (5.1.0) of generic_gallery with PHP 7.4 and Typo3 11 the following warning is shown in case no name was given in the Typoscript setup: PHP Warning: Undefined array key "icon" in ext/generic_gallery/Classes/Backend/Hooks/TcaHook.php line 67)
2 => ($view['icon']) ?: 'extensions-generic-gallery',
To fix this warning change the line to:
2 => (array_key_exists('icon', $view) && $view['icon']) ?: 'extensions-generic-gallery',