(?) LikeableService contract
Old
php
public function addLikeTo(Likeable $likeable, $type, $userId);
public function removeLikeFrom(Likeable $likeable, $type, $userId);
public function toggleLikeOf(Likeable $likeable, $type, $userId);
public function isLiked(Likeable $likeable, $type, $userId): bool;
New
Change methods argument order in LikeableService contract and accept only strict types.
php
public function addLikeTo(Likeable $likeable, Liker $user, LikeType $type);
public function removeLikeFrom(Likeable $likeable, Liker $user, LikeType $type);
public function toggleLikeOf(Likeable $likeable, Liker $user, LikeType $type);
public function isLiked(Likeable $likeable, Liker $user, LikeType $type): bool;