Skip to content

Commit 02b2fca

Browse files
committed
fix: index key name error on read OS user
1 parent c41ea63 commit 02b2fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static function isRootUser(): bool
133133
*/
134134
public static function getUserName(): string
135135
{
136-
$key = self::isWindows() ? 'USERANME' : 'USER';
136+
$key = self::isWindows() ? 'USERNAME' : 'USER';
137137

138138
if (isset($_SERVER[$key])) {
139139
return $_SERVER[$key];

0 commit comments

Comments
 (0)