mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
More params and returns to PHP 7.3+
This commit is contained in:
parent
3d246ae842
commit
26c38b3ec9
95 changed files with 1028 additions and 4865 deletions
|
|
@ -23,13 +23,7 @@ class ConnectionSecurityType
|
|||
const STARTTLS = 2;
|
||||
const AUTO_DETECT = 9;
|
||||
|
||||
/**
|
||||
* @param int $iPort
|
||||
* @param int $iSecurityType
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function UseSSL($iPort, $iSecurityType)
|
||||
public static function UseSSL(int $iPort, int $iSecurityType) : bool
|
||||
{
|
||||
$iPort = (int) $iPort;
|
||||
$iResult = (int) $iSecurityType;
|
||||
|
|
@ -53,14 +47,7 @@ class ConnectionSecurityType
|
|||
return self::SSL === $iResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $bSupported
|
||||
* @param int $iSecurityType
|
||||
* @param bool $bHasSupportedAuth = true
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function UseStartTLS($bSupported, $iSecurityType, $bHasSupportedAuth = true)
|
||||
public static function UseStartTLS(bool $bSupported, int $iSecurityType, bool $bHasSupportedAuth = true) : bool
|
||||
{
|
||||
return ($bSupported &&
|
||||
(self::STARTTLS === $iSecurityType ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue