fix-phpstan-error-level-1 #1579

Merged
MrPetovan merged 34 commits from MrPetovan/friendica-addons:fix-phpstan-error-level-1 into develop 2024-12-12 22:37:43 +01:00
Showing only changes of commit c15a72991f - Show all commits

View file

@ -3287,7 +3287,7 @@ class PHPMailer
$result = 'localhost.localdomain';
if (!empty($this->Hostname)) {
$result = $this->Hostname;
} elseif (array_key_exists('SERVER_NAME', $_SERVER) and !empty($_SERVER['SERVER_NAME'])) {
} elseif (!empty($_SERVER['SERVER_NAME'])) {
$result = $_SERVER['SERVER_NAME'];
} elseif (function_exists('gethostname') && gethostname() !== false) {
$result = gethostname();