Skip to content

Commit 2c85eb7

Browse files
authored
Update openssl.stub
1 parent 3a7c84e commit 2c85eb7

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

stubs/openssl.stub

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
<?php
22

33
/**
4+
* @param string $data
5+
* @param string &$signature
6+
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
7+
* @param string|int $algorithm
8+
*
49
* @param-out string $signature
10+
*
11+
* @return bool
512
*/
613
function openssl_sign(
714
string $data,
8-
string &$signature,
9-
#[\SensitiveParameter] \OpenSSLAsymmetricKey|\OpenSSLCertificate|array|string $private_key,
15+
&$signature,
16+
#[LanguageLevelTypeAware(['8.0' => 'OpenSSLAsymmetricKey|OpenSSLCertificate|array|string'], default: 'resource|array|string')] $private_key,
1017
string|int $algorithm = OPENSSL_ALGO_SHA1
11-
): bool
12-
{
13-
}
18+
): bool {}

0 commit comments

Comments
 (0)