Return type of anonymous function has typehint with deprecated class Drupal\group\GroupMembership

Created on 17 January 2024, 10 months ago

We have created a custom module which uses getMembers() function of Drupal\group\Entity\GroupInterface class.

When we upgraded this module from 8.x-1.x version to 2.2.x version we encountered following error:

Return type of anonymous function has typehint with deprecated class Drupal\group\GroupMembership:
in group:3.2.0 and is removed from group:4.0.0. Use the static
  methods on \Drupal\group\Entity\GroupMembership instead.
🐛 Bug report
Status

Needs review

Version

2.2

Component

Code

Created by

🇮🇳India abhinavk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024