Skip to content

Commit fca9b2c

Browse files
authored
hasRequestedToFollow is the only function that specifies type Model on argument $user
this precludes sending an integer as specified in the @Property and like all the other calls that let you pass either the key or the model
1 parent fd18ad3 commit fca9b2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Followable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function acceptFollowRequestFrom($user)
8181
/**
8282
* @param \Illuminate\Database\Eloquent\Model|int $user
8383
*/
84-
public function hasRequestedToFollow(Model $user): bool
84+
public function hasRequestedToFollow($user): bool
8585
{
8686
if ($user instanceof Model) {
8787
$user = $user->getKey();

0 commit comments

Comments
 (0)