Skip to content

Commit f69b183

Browse files
committed
fix: add type
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 17ee7f4 commit f69b183

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Sign/JSignService.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ public function sign(JSignParam $params)
5959
* unicode chars. As workaround, I changed the password certificate in
6060
* memory.
6161
*/
62-
private function repackCertificateIfPasswordIsUnicode(JSignParam $params, $cert, $pkey): void
62+
private function repackCertificateIfPasswordIsUnicode(
63+
JSignParam $params,
64+
\OpenSSLCertificate|string $cert,
65+
\OpenSSLAsymmetricKey|\OpenSSLCertificate|string $pkey,
66+
): void
6367
{
6468
if (!mb_detect_encoding($params->getPassword(), 'ASCII', true)) {
6569
$password = md5(microtime());

0 commit comments

Comments
 (0)