[PHP 8.0+?] Empty requires tag in info.xml crashes extension list
Overview
This seems to be working fine on PHP 7.4 tho.
Reproduction steps
- Having an empty requires tag
- Go to:
.../civicrm/admin/extensions?reset=1
- See an empty page? Not sure as I have whoops enabled
Current behaviour
array_intersect(): Argument #1 ($array) must be of type array, string given
Expected behaviour
Empty tags should be ignored
Environment information
- Browser: Firefox
- CiviCRM: 5.65.2
- PHP: 8.1 (works on 7.4)
- CMS: Drupal 9.5.11
- Database: Yes :)
- Web Server: Apache 2