diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php
index 03ffcd9d603fd2f3d8d689bbe91fdd14a8722c3d..d103e1380c53d767510e99c024ad046e49bf79f9 100644
--- a/lib/private/Mail/Mailer.php
+++ b/lib/private/Mail/Mailer.php
@@ -259,7 +259,7 @@ class Mailer implements IMailer {
 		if (!empty($smtpSecurity)) {
 			$transport->setEncryption($smtpSecurity);
 		}
-		$streamingOptions = $this->config->getSystemValue('mail_smtpstreamoptions', array());
+		$streamingOptions = $this->config->getSystemValue('mail_smtpstreamoptions', []);
 		if (is_array($streamingOptions) && !empty($streamingOptions)) {
 			$transport->setStreamOptions($streamingOptions);
 		}
diff --git a/tests/lib/Mail/MailerTest.php b/tests/lib/Mail/MailerTest.php
index 8c309335ab8d2c69d1dfa5d196f55b8284ce83d9..1913cc1176c98929f85e94a18a7b60ad52833106 100644
--- a/tests/lib/Mail/MailerTest.php
+++ b/tests/lib/Mail/MailerTest.php
@@ -172,7 +172,7 @@ class MailerTest extends TestCase {
 		$this->config->method('getSystemValue')
 			->will($this->returnValueMap([
 				['mail_smtpmode', 'smtp', 'smtp'],
-				['mail_smtpstreamoptions', array(), array('foo' => 1)]
+				['mail_smtpstreamoptions', [], ['foo' => 1]]
 			]));
 		$mailer = self::invokePrivate($this->mailer, 'getInstance');
 		$this->assertEquals(1, count($mailer->getTransport()->getStreamOptions()));
@@ -184,7 +184,7 @@ class MailerTest extends TestCase {
 		$this->config->method('getSystemValue')
 			->will($this->returnValueMap([
 				['mail_smtpmode', 'smtp', 'smtp'],
-				['mail_smtpstreamoptions', array(), 'bar']
+				['mail_smtpstreamoptions', [], 'bar']
 			]));
 		$mailer = self::invokePrivate($this->mailer, 'getInstance');
 		$this->assertEquals(0, count($mailer->getTransport()->getStreamOptions()));