From 9f7b0fb326abeb3d4e5ef5898405e9eadd91eb47 Mon Sep 17 00:00:00 2001 From: MDW Date: Wed, 20 Mar 2024 18:05:40 +0100 Subject: [PATCH] Fix PhanTypeMismatchReturnNullable by adding die() in final else condition as well --- htdocs/core/class/smtps.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/core/class/smtps.class.php b/htdocs/core/class/smtps.class.php index 8d8d95369e5..bca65ed5d84 100644 --- a/htdocs/core/class/smtps.class.php +++ b/htdocs/core/class/smtps.class.php @@ -1686,6 +1686,8 @@ class SMTPs } $content .= "--".$this->_getBoundary('mixed').'--'."\r\n"; + } else { + die("Sorry, no content"); } return $content;