X-Git-Url: https://git.piment-noir.org/?p=Project_proches_de_moi-server.git;a=blobdiff_plain;f=src%2FEntity%2FPerson.php;h=d1c7886bf2dfab2cda322d0a2d35322077b85465;hp=701b9e63cc6a550591be4a919a690e2b3193eb2a;hb=d68c207331ee5c52769c538984e69ca7bbe5e902;hpb=d26857346e3472ad79b8b25f65cfd61d6cb1a5cb diff --git a/src/Entity/Person.php b/src/Entity/Person.php index 701b9e6..d1c7886 100644 --- a/src/Entity/Person.php +++ b/src/Entity/Person.php @@ -154,7 +154,7 @@ class Person $this->friends_with_me->add($friendship); } - public function addFriend(User $friend) + public function addFriend(Person $friend) { $fs = new Friendship(); $fs->setPerson($this);