Code
- start.php ➔ groups_init()
- start.php ➔ groups_fields_setup()
- start.php ➔ _groups_page_menu_group_profile()
- start.php ➔ _groups_page_menu()
- start.php ➔ groups_page_handler()
- start.php ➔ groups_set_url()
- start.php ➔ groups_activity_owner_block_menu()
- start.php ➔ groups_entity_menu_setup()
- start.php ➔ groups_user_entity_menu_setup()
- start.php ➔ groups_create_event_listener()
- start.php ➔ groups_update_event_listener()
- start.php ➔ groups_write_acl_plugin_hook()
- start.php ➔ groups_user_join_event_listener()
- start.php ➔ groups_access_collection_override()
- start.php ➔ groups_user_leave_event_listener()
- start.php ➔ groups_access_default_override()
- start.php ➔ groups_get_invited_groups()
- start.php ➔ groups_join_group()
- start.php ➔ group_access_options()
- start.php ➔ activity_profile_menu()
- start.php ➔ groupprofile_ecml_views_hook()
- start.php ➔ groups_run_upgrades()
- start.php ➔ groups_test()
- start.php ➔ groups_invitationrequest_menu_setup()
- start.php ➔ groups_members_menu_setup()
- start.php ➔ groups_prepare_profile_buttons()
- start.php ➔ groups_default_page_owner_handler()
- start.php ➔ groups_setup_filter_tabs()
- start.php ➔ groups_set_icon_sizes()
There are different options of fixing this problem.
If you want to be on the safe side, you can add an additional type-check:
If you are sure that the expression is traversable, you might want to add a doc comment cast to improve IDE auto-completion and static analysis:
Mark the issue as a false-positive: Just hover the remove button, in the top-right corner of this issue for more options.