*/
class Pbkdf2Password extends ParameterizedPassword {
protected function getDefaultParams() {
- return array(
+ return [
'algo' => $this->config['algo'],
'rounds' => $this->config['cost'],
'length' => $this->config['length']
- );
+ ];
}
protected function getDelimiter() {
$this->params['algo'],
$password,
base64_decode( $this->args[0] ),
- $this->params['rounds'],
- $this->params['length'],
+ (int)$this->params['rounds'],
+ (int)$this->params['length'],
true
);
} else {