Skip to content

Commit a3c8860

Browse files
committed
fixed bug in using substr method
1 parent 7a54f6f commit a3c8860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/XLogServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function boot()
2020
public function register()
2121
{
2222
$this->app->singleton(env('XLOG_TRACK_ID_KEY', 'xTrackId'), function ($app) {
23-
return substr(0, 10, sha1(uniqid('xTrackId')));
23+
return substr(sha1(uniqid('xTrackId'), 0, 10));
2424
});
2525

2626
$this->app->singleton('XLog', function ($app) {

0 commit comments

Comments
 (0)