You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -181,7 +181,7 @@ private function getEncoderConfigFromAlgorithm(array $config): array
181
181
$config['algorithm'] = 'sodium';
182
182
} elseif (\defined('PASSWORD_ARGON2I')) {
183
183
$config['algorithm'] = 'native';
184
-
$config['native_algorithm'] = PASSWORD_ARGON2I;
184
+
$config['native_algorithm'] = \PASSWORD_ARGON2I;
185
185
} else {
186
186
thrownewLogicException(sprintf('Algorithm "argon2i" is not available. Either use %s"auto" or upgrade to PHP 7.2+ instead.', \defined('SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13') ? '"argon2id", ' : ''));
187
187
}
@@ -193,7 +193,7 @@ private function getEncoderConfigFromAlgorithm(array $config): array
193
193
$config['algorithm'] = 'sodium';
194
194
} elseif (\defined('PASSWORD_ARGON2ID')) {
195
195
$config['algorithm'] = 'native';
196
-
$config['native_algorithm'] = PASSWORD_ARGON2ID;
196
+
$config['native_algorithm'] = \PASSWORD_ARGON2ID;
197
197
} else {
198
198
thrownewLogicException(sprintf('Algorithm "argon2id" is not available. Either use %s"auto", upgrade to PHP 7.3+ or use libsodium 1.0.15+ instead.', \defined('PASSWORD_ARGON2I') || $hasSodium ? '"argon2i", ' : ''));
0 commit comments