fix PHP 8.0 TypeError: Unsupported operand types: string & int

This commit is contained in:
Ralf Becker 2021-11-23 17:23:49 +01:00
parent dd73884534
commit ce76fa5d7f

View File

@ -281,7 +281,7 @@ class Account implements \ArrayAccess
public static function ssl2secure($ssl)
{
$secure = false;
switch($ssl & ~self::SSL_VERIFY)
switch((int)$ssl & ~self::SSL_VERIFY)
{
case self::SSL_STARTTLS:
$secure = 'tls'; // Horde uses 'tls' for STARTTLS, not ssl connection with tls version >= 1 and no sslv2/3