Skip to content

Commit 63de09e

Browse files
authored
getUserName() should be static
1 parent 4e1e8bb commit 63de09e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sys.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static function isRoot(): bool
5555
* Returns current linux user who runs script
5656
* @return string|null
5757
*/
58-
public function getUserName()
58+
public static function getUserName()
5959
{
6060
$userInfo = posix_getpwuid(posix_geteuid());
6161
return $userInfo['name'] ?? null;

0 commit comments

Comments
 (0)