You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2024. It is now read-only.
MembershipManagerInterface::createMembership() is accepting objects of the type AccountInterface for the $user parameter. In the method it will then pass this to EntityOwnerInterface::setOwner() which only accepts UserInterface objects.
This means if we pass in an object that implements AccountInterface but not UserInterface then we will get a fatal error. This might happen for example by passing in an AccountProxy object or an AnonymousUserSession.
Scope of this ticket:
Change the signature of MembershipManagerInterface::createMembership() to accept UserInterface objects instead of AccountInterface objects.
Update the implementation at MembershipManager::createMembership().
The text was updated successfully, but these errors were encountered:
MembershipManagerInterface::createMembership()
is accepting objects of the typeAccountInterface
for the$user
parameter. In the method it will then pass this toEntityOwnerInterface::setOwner()
which only acceptsUserInterface
objects.This means if we pass in an object that implements
AccountInterface
but notUserInterface
then we will get a fatal error. This might happen for example by passing in anAccountProxy
object or anAnonymousUserSession
.Scope of this ticket:
MembershipManagerInterface::createMembership()
to acceptUserInterface
objects instead ofAccountInterface
objects.MembershipManager::createMembership()
.The text was updated successfully, but these errors were encountered: