logger = $logger; } /** * @return DiagnosticResult[] */ public function execute() { if (SettingsServer::isWindows()) { return []; } if (posix_getuid() === 0) { return [DiagnosticResult::singleResult( "php running as root", DiagnosticResult::STATUS_WARNING, "PHP seems to be running as root. Unless you are using Matomo inside a docker container you should check your setup." )]; } return []; } }