Skip to content

Commit 793e8bc

Browse files
committed
Fixed #160
1 parent 46d6e9c commit 793e8bc

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/Events/Event.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@
66

77
class Event
88
{
9-
public int $followingId;
9+
/**
10+
* @var int|string
11+
*/
12+
public $followingId;
1013

11-
public int $followerId;
14+
/**
15+
* @var int|string
16+
*/
17+
public $followerId;
1218

1319
protected UserFollower $relation;
1420

src/UserFollower.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
use Overtrue\LaravelFollow\Events\Unfollowed;
88

99
/**
10-
* @property int $following_id;
11-
* @property int $follower_id;
10+
* @property int|string $following_id;
11+
* @property int|string $follower_id;
1212
*/
1313
class UserFollower extends Pivot
1414
{

0 commit comments

Comments
 (0)