Use view handler where appropriate.
[Project_proches_de_moi-server.git] / src / Entity / Person.php
index 701b9e63cc6a550591be4a919a690e2b3193eb2a..d1c7886bf2dfab2cda322d0a2d35322077b85465 100644 (file)
@@ -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);