mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fix #19041: Fix PHP 8.1 issues
This commit is contained in:

committed by
GitHub

parent
4bd551d143
commit
1271bc419f
@ -298,7 +298,7 @@ class Security extends Component
|
||||
public function hkdf($algo, $inputKey, $salt = null, $info = null, $length = 0)
|
||||
{
|
||||
if (function_exists('hash_hkdf')) {
|
||||
$outputKey = hash_hkdf($algo, $inputKey, $length, $info, $salt);
|
||||
$outputKey = hash_hkdf((string)$algo, (string)$inputKey, $length, (string)$info, (string)$salt);
|
||||
if ($outputKey === false) {
|
||||
throw new InvalidArgumentException('Invalid parameters to hash_hkdf()');
|
||||
}
|
||||
|
Reference in New Issue
Block a user