Browse Source

Update Worker.php

walkor 2 years ago
parent
commit
41f9548bdb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Worker.php

+ 1 - 1
src/Worker.php

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