We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e1e8bb commit 63de09eCopy full SHA for 63de09e
src/Sys.php
@@ -55,7 +55,7 @@ public static function isRoot(): bool
55
* Returns current linux user who runs script
56
* @return string|null
57
*/
58
- public function getUserName()
+ public static function getUserName()
59
{
60
$userInfo = posix_getpwuid(posix_geteuid());
61
return $userInfo['name'] ?? null;
0 commit comments