aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2022-12-04 16:13:35 +0100
committerJ0WI <J0WI@users.noreply.github.com>2022-12-05 16:32:11 +0100
commitfc97f6847dbf8c165633077d8380298e208c64c9 (patch)
treed95e998f7d604e28a96a668cbc3438a10286f951 /lib/public
parent8c59ba41f51f74381152708eb236bc76f9c2199d (diff)
downloadnextcloud-server-fc97f6847dbf8c165633077d8380298e208c64c9.tar.gz
nextcloud-server-fc97f6847dbf8c165633077d8380298e208c64c9.zip
Replace getSystemValue with getSystemValueString
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Util.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 1289f8ccff4..b2b3322fe86 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -323,11 +323,11 @@ class Util {
* is passed to this function
* @since 5.0.0
*/
- public static function getDefaultEmailAddress($user_part) {
+ public static function getDefaultEmailAddress(string $user_part): string {
$config = \OC::$server->getConfig();
- $user_part = $config->getSystemValue('mail_from_address', $user_part);
+ $user_part = $config->getSystemValueString('mail_from_address', $user_part);
$host_name = self::getServerHostName();
- $host_name = $config->getSystemValue('mail_domain', $host_name);
+ $host_name = $config->getSystemValueString('mail_domain', $host_name);
$defaultEmailAddress = $user_part.'@'.$host_name;
$mailer = \OC::$server->getMailer();