diff --git a/www/lib/CoreLibs/Check/Email.php b/www/lib/CoreLibs/Check/Email.php index 6e78beeb..455a7d24 100644 --- a/www/lib/CoreLibs/Check/Email.php +++ b/www/lib/CoreLibs/Check/Email.php @@ -169,10 +169,10 @@ class Email * @param string $email email string * @param bool $short default false, if true, * returns only short type (pc instead of pc_html) - * @return string|bool email type, eg "pc", "docomo", etc, + * @return string|false email type, eg "pc", "docomo", etc, * false for invalid short type */ - public static function getEmailType(string $email, bool $short = false) + public static function getEmailType(string $email, bool $short = false): string|false { // trip if there is no email address if (!$email) { @@ -200,9 +200,9 @@ class Email * gets the short email type from a long email type * * @param string $email_type email string - * @return string|bool short string or false for invalid + * @return string|false short string or false for invalid */ - public static function getShortEmailType(string $email_type) + public static function getShortEmailType(string $email_type): string|false { // check if the short email type exists if (isset(self::$mobile_email_type_short[$email_type])) { diff --git a/www/lib/CoreLibs/DB/IO.php b/www/lib/CoreLibs/DB/IO.php index b19284a2..c92f80ff 100644 --- a/www/lib/CoreLibs/DB/IO.php +++ b/www/lib/CoreLibs/DB/IO.php @@ -3736,7 +3736,7 @@ class IO * Either a single element for a single insert or an array * if multiple insert values where used. * - * @return array|string|int|null Current insert query primary key + * @return array|string|int|null Current insert query primary key, null on not set */ public function dbGetInsertPK(): array|string|int|null {