Reproduction steps:
- Go to a tracker with a Permissions on artifact field
- Add the Permissions on artifact field to the report criteria
- Select 'Any' and click on 'Search'
Trace:
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, string given in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_PermissionsOnArtifact.php:528
Stack trace:
#0 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.php(278): Tracker_FormElement_Field_PermissionsOnArtifact->fetchCriteriaValue()
#1 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.php(249): Tracker_FormElement_Field->buildReportCriteria()
#2 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report_Criteria.class.php(76): Tracker_FormElement_Field->fetchCriteria()
#3 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report.class.php(502): Tracker_Report_Criteria->fetch()
#4 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report.class.php(859): Tracker_Report->fetchDisplayQuery()
[...]