Skip to content

Commit c76a1dc

Browse files
committed
refactor: fix static analysis problems
1 parent e1315e3 commit c76a1dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system/Encryption/Handlers/BaseHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ protected static function substr($str, $start, $length = null)
6464
* tries again with any previous keys we may have.
6565
*
6666
* @param string $data Data to decrypt
67-
* @param list<string, string>|string|null $params Decryption parameters
68-
* @param callable(string, list<string, string>|string|null): string $decryptCallback Callback that performs decryption
67+
* @param array<string, string>|string|null $params Decryption parameters
68+
* @param callable(string, array<string, string>|string|null): string $decryptCallback Callback that performs decryption
6969
*
7070
* @return string Decrypted data
7171
*
7272
* @throws EncryptionException
7373
*/
74-
protected function tryDecryptWithFallback($data, #[SensitiveParameter] $params, callable $decryptCallback)
74+
protected function tryDecryptWithFallback($data, #[SensitiveParameter] array|string|null $params, callable $decryptCallback)
7575
{
7676
try {
7777
return $decryptCallback($data, $params);

0 commit comments

Comments
 (0)