[Security\Core] Deprecate passing $salt to BCryptPasswordEncoder::encodePassword()

This commit is contained in:
Nicolas Grekas 2015-11-04 14:11:51 +01:00
parent 7beea17a02
commit 770bd8cfda

View File

@ -71,6 +71,8 @@ class BCryptPasswordEncoder extends BasePasswordEncoder
$options = array('cost' => $this->cost);
if ($salt) {
@trigger_error('Passing a $salt to '.__METHOD__.'() is deprecated since version 2.8 and will be ignored in 3.0.', E_USER_DEPRECATED);
$options['salt'] = $salt;
}