This repository has been archived by the owner on Aug 18, 2024. It is now read-only.
MembershipManager::createMembership() is accepting invalid account objects #540
Labels
Milestone
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: