Skip to content

Commit dd1641a

Browse files
committed
Fixed false-negative fabbot error on exception message
1 parent b20f1d9 commit dd1641a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DependencyInjection/SecurityExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ private function createEncoder(array $config)
558558
$config['algorithm'] = 'native';
559559
$config['native_algorithm'] = PASSWORD_ARGON2I;
560560
} else {
561-
throw new InvalidConfigurationException(sprintf('Algorithm "argon2i" is not available. Either use %s"auto" or upgrade to PHP 7.2+ instead.', \defined('SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13') ? '"argon2id", ' : ''));
561+
throw new InvalidConfigurationException(sprintf('Algorithm "argon2i" is not available. Either use "%s" or upgrade to PHP 7.2+ instead.', \defined('SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13') ? 'argon2id", "auto' : 'auto'));
562562
}
563563

564564
return $this->createEncoder($config);
@@ -571,7 +571,7 @@ private function createEncoder(array $config)
571571
$config['algorithm'] = 'native';
572572
$config['native_algorithm'] = PASSWORD_ARGON2ID;
573573
} else {
574-
throw new InvalidConfigurationException(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", ' : ''));
574+
throw new InvalidConfigurationException(sprintf('Algorithm "argon2id" is not available. Either use "%s", upgrade to PHP 7.3+ or use libsodium 1.0.15+ instead.', \defined('PASSWORD_ARGON2I') || $hasSodium ? 'argon2i", "auto' : 'auto'));
575575
}
576576

577577
return $this->createEncoder($config);

0 commit comments

Comments
 (0)