Commit 5c7a0e23 authored by Guilherme Blanco's avatar Guilherme Blanco

phpcs

parent 1805c026
......@@ -425,7 +425,7 @@ EOT
private function isLinuxRoot() : bool
{
return PHP_OS === 'Linux' && posix_getpwuid(posix_geteuid())['name'] === 'root';
return PHP_OS_FAMILY !== 'Windows' && posix_getpwuid(posix_geteuid())['name'] === 'root';
}
private function cleanupReadOnlyFile(string $filename) : void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment