From 942de85bda5acb755755941d3046929e934e2b4a Mon Sep 17 00:00:00 2001 From: Kevin Ndung'u Date: Thu, 23 Aug 2018 13:34:55 +0200 Subject: [PATCH] Set imap port to have int type Fixes #1054 Signed-off-by: Kevin Ndung'u --- lib/Service/AutoConfig/IspDbConfigurationDetector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';