Skip to content

Commit 2fc7a32

Browse files
authored
Fixed #158
1 parent ae103ce commit 2fc7a32

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
@@ -215,7 +215,7 @@ public function attachFollowStatus($followables, callable $resolver = null)
215215
$followed = $this->followings()->wherePivot('accepted_at', '!=', null)->pluck('following_id');
216216

217217
$followables->map(function ($followable) use ($followed, $resolver) {
218-
$resolver = $resolver ?? fn ($m) => $m;
218+
$resolver = $resolver ?? function ($m) { return $m; };
219219
$followable = $resolver($followable);
220220

221221
if ($followable && \in_array(Followable::class, \class_uses($followable))) {

0 commit comments

Comments
 (0)