diff --git a/lib/Service/AutoConfig/IspDbConfigurationDetector.php b/lib/Service/AutoConfig/IspDbConfigurationDetector.php index 19e812f41..017c29aa3 100644 --- a/lib/Service/AutoConfig/IspDbConfigurationDetector.php +++ b/lib/Service/AutoConfig/IspDbConfigurationDetector.php @@ -145,7 +145,7 @@ class IspDbConfigurationDetector { */ private function testImapConfiguration(array $imap, string $email, string $password, string $name) { $host = $imap['hostname']; - $port = $imap['port']; + $port = (int) $imap['port']; $encryptionProtocol = 'none'; if ($imap['socketType'] === 'SSL') { $encryptionProtocol = 'ssl';