This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
33
}
34
35
2
public function getMemberCommunities(User $user): array
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
38
}
39
40
3
public function createMembership(Community $community, User $user, bool $isLead = false, bool $isNews = true): Member
41
{
42
$membership =
43
3
(new Member())
44
3
->setCommunity($community)
45
3
->setUser($user)
46
3
->setIsLead($isLead)
47
;
48
3
$this->em->persist($membership);
49
3
$this->em->flush($membership);
50
3
if ($isNews === true) {
51
2
$this->eventDispatcher->dispatch(NewMemberEvent::NAME, new NewMemberEvent($community, $user));
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.