From b0f3866b70c701ce7855d352914ec270b79f54dc Mon Sep 17 00:00:00 2001 From: blizzz Date: Tue, 21 Jan 2020 09:03:58 +0100 Subject: [PATCH] use getSystemValueInt Co-Authored-By: kesselb Signed-off-by: Arthur Schiwon --- lib/private/Security/Hasher.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/private/Security/Hasher.php b/lib/private/Security/Hasher.php index b1a3216ec7..696fd67136 100644 --- a/lib/private/Security/Hasher.php +++ b/lib/private/Security/Hasher.php @@ -62,9 +62,9 @@ class Hasher implements IHasher { $this->config = $config; $this->options = [ - 'memory_cost' => (int)$this->config->getSystemValue('hashingMemoryCost', PASSWORD_ARGON2_DEFAULT_MEMORY_COST), - 'time_cost' => (int)$this->config->getSystemValue('hashingTimeCost', PASSWORD_ARGON2_DEFAULT_TIME_COST), - 'threads' => (int)$this->config->getSystemValue('hashingThreads', PASSWORD_ARGON2_DEFAULT_THREADS), + 'memory_cost' => $this->config->getSystemValueInt('hashingMemoryCost', PASSWORD_ARGON2_DEFAULT_MEMORY_COST), + 'time_cost' => $this->config->getSystemValueInt('hashingTimeCost', PASSWORD_ARGON2_DEFAULT_TIME_COST), + 'threads' => $this->config->getSystemValueInt('hashingThreads', PASSWORD_ARGON2_DEFAULT_THREADS), ]; $hashingCost = $this->config->getSystemValue('hashingCost', null);