Skip to content

Commit ae427bc

Browse files
authored
Merge pull request #55 from binafy/fix-UserUtils-getUserId
[1.x] Add string type to `UserUtils::getUserId()`
2 parents ae5dc76 + 8bea84e commit ae427bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utills/UserUtils.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static function getCurrentGuardName(): ?string
5151
/**
5252
* Get the user id by guards.
5353
*/
54-
public static function getUserId(): ?int
54+
public static function getUserId(): int|string|null
5555
{
5656
$guards = config('user-monitoring.user.guards', ['web']);
5757

0 commit comments

Comments
 (0)