File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,17 @@ class LaravelUserToStatsigUserConverter
16
16
17
17
public static function defaultConvert (User $ laravelUser ): StatsigUser
18
18
{
19
- $ statsigUser = StatsigUser::withUserID ($ laravelUser ->getAuthIdentifier ());
19
+ $ statsigUser = StatsigUser::withUserID (
20
+ (string ) $ laravelUser ->getAuthIdentifier ()
21
+ );
22
+
20
23
$ statsigUser ->setEmail ($ laravelUser ->getEmailForVerification ());
21
24
$ statsigUser ->setStatsigEnvironment ([App::environment ()]);
22
25
$ statsigUser ->setIP (request ()->ip ());
23
26
24
27
// What are the difference between current locale and get locale?
25
28
// $statsigUser->setLocale(App::currentLocale());
26
- $ statsigUser ->setLocale (App::getLocale ());
29
+ $ statsigUser ->setLocale (App::currentLocale ());
27
30
28
31
// are these set automatically? can i remove?
29
32
$ statsigUser ->setUserAgent (request ()->userAgent ());
You can’t perform that action at this time.
0 commit comments