Browse Source

Update Worker.php

walkor 2 năm trước cách đây
mục cha
commit
41f9548bdb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Worker.php

+ 1 - 1
src/Worker.php

@@ -767,7 +767,7 @@ class Worker
     protected static function getCurrentUser(): string
     {
         $userInfo = \posix_getpwuid(\posix_getuid());
-        return $userInfo['name'];
+        return $userInfo['name'] ?? 'unknown';
     }
 
     /**