Skip to content

Commit fdd83b1

Browse files
authored
Typehint actual Builder model (#700)
Fix for false-positive IDE errors when doing e.g. `User::whereHasPermission(...)->get()`, where the `get` method is not recognized by the IDE.
1 parent 266d7c9 commit fdd83b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/HasLaratrustScopes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Laratrust\Traits;
66

77
use BackedEnum;
8-
use Illuminate\Contracts\Database\Eloquent\Builder;
8+
use Illuminate\Database\Eloquent\Builder;
99
use Illuminate\Support\Facades\Config;
1010
use Laratrust\Helper;
1111
use Laratrust\Models\Team;

0 commit comments

Comments
 (0)