Skip to content

Commit 50e0c9d

Browse files
committed
Update stubs
1 parent 7381eeb commit 50e0c9d

14 files changed

+101
-14
lines changed

stubs/ext/ldap/ldap_connect_wallet.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
#ifdef LDAP_API_FEATURE_X_OPENLDAP
44
#[\Since('8.3')]
5-
function ldap_connect_wallet(?string $uri = null, string $wallet, #[\SensitiveParameter] string $password, int $auth_mode = GSLC_SSL_NO_AUTH): \LDAP\Connection|false
5+
function ldap_connect_wallet(
6+
?string $uri = null,
7+
string $wallet,
8+
#[\SensitiveParameter]
9+
string $password,
10+
int $auth_mode = GSLC_SSL_NO_AUTH
11+
): \LDAP\Connection|false
612
{
713
}

stubs/ext/odbc/odbc_connect.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ function odbc_connect(string $dsn, string $user, string $password, int $cursor_o
66
{
77
}
88
#[\Since('8.4')]
9-
function odbc_connect(string $dsn, ?string $user = null, #[\SensitiveParameter] ?string $password = null, int $cursor_option = SQL_CUR_USE_DRIVER): \Odbc\Connection|false
9+
function odbc_connect(
10+
string $dsn,
11+
?string $user = null,
12+
#[\SensitiveParameter]
13+
?string $password = null,
14+
int $cursor_option = SQL_CUR_USE_DRIVER
15+
): \Odbc\Connection|false
1016
{
1117
}

stubs/ext/odbc/odbc_pconnect.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ function odbc_pconnect(string $dsn, string $user, string $password, int $cursor_
66
{
77
}
88
#[\Since('8.4')]
9-
function odbc_pconnect(string $dsn, ?string $user = null, #[\SensitiveParameter] ?string $password = null, int $cursor_option = SQL_CUR_USE_DRIVER): \Odbc\Connection|false
9+
function odbc_pconnect(
10+
string $dsn,
11+
?string $user = null,
12+
#[\SensitiveParameter]
13+
?string $password = null,
14+
int $cursor_option = SQL_CUR_USE_DRIVER
15+
): \Odbc\Connection|false
1016
{
1117
}

stubs/ext/openssl/openssl_csr_new.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ function openssl_csr_new(array $distinguished_names, &$private_key, ?array $opti
99
* @param OpenSSLAsymmetricKey|null $private_key
1010
*/
1111
#[\Since('8.2')]
12-
function openssl_csr_new(array $distinguished_names, #[\SensitiveParameter] &$private_key, ?array $options = null, ?array $extra_attributes = null): \OpenSSLCertificateSigningRequest|bool
12+
function openssl_csr_new(
13+
array $distinguished_names,
14+
#[\SensitiveParameter]
15+
&$private_key,
16+
?array $options = null,
17+
?array $extra_attributes = null
18+
): \OpenSSLCertificateSigningRequest|bool
1319
{
1420
}

stubs/ext/openssl/openssl_csr_sign.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ function openssl_csr_sign(\OpenSSLCertificateSigningRequest|string $csr, \OpenSS
99
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
1010
*/
1111
#[\Since('8.4')]
12-
function openssl_csr_sign(\OpenSSLCertificateSigningRequest|string $csr, \OpenSSLCertificate|string|null $ca_certificate, #[\SensitiveParameter] $private_key, int $days, ?array $options = null, int $serial = 0, ?string $serial_hex = null): \OpenSSLCertificate|false
12+
function openssl_csr_sign(
13+
\OpenSSLCertificateSigningRequest|string $csr,
14+
\OpenSSLCertificate|string|null $ca_certificate,
15+
#[\SensitiveParameter]
16+
$private_key,
17+
int $days,
18+
?array $options = null,
19+
int $serial = 0,
20+
?string $serial_hex = null
21+
): \OpenSSLCertificate|false
1322
{
1423
}

stubs/ext/openssl/openssl_password_hash.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
#if defined(HAVE_OPENSSL_ARGON2)
44
#[\Since('8.4')]
5-
function openssl_password_hash(string $algo, #[\SensitiveParameter] string $password, array $options = []): string
5+
function openssl_password_hash(
6+
string $algo,
7+
#[\SensitiveParameter]
8+
string $password,
9+
array $options = []
10+
): string
611
{
712
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<?php
22

33
#[\Since('8.4')]
4-
function openssl_password_verify(string $algo, #[\SensitiveParameter] string $password, string $hash): bool
4+
function openssl_password_verify(
5+
string $algo,
6+
#[\SensitiveParameter]
7+
string $password,
8+
string $hash
9+
): bool
510
{
611
}

stubs/ext/pdo/PDO.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ public function __construct(string $dsn, ?string $username = null, ?string $pass
1111
{
1212
}
1313
#[\Since('8.4')]
14-
public static function connect(string $dsn, ?string $username = null, #[\SensitiveParameter] ?string $password = null, ?array $options = null): static
14+
public static function connect(
15+
string $dsn,
16+
?string $username = null,
17+
#[\SensitiveParameter]
18+
?string $password = null,
19+
?array $options = null
20+
): static
1521
{
1622
}
1723
/**

stubs/ext/pgsql/pg_change_password.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
#endif
44
#[\Since('8.4')]
5-
function pg_change_password(\PgSql\Connection $connection, string $user, #[\SensitiveParameter] string $password): bool
5+
function pg_change_password(
6+
\PgSql\Connection $connection,
7+
string $user,
8+
#[\SensitiveParameter]
9+
string $password
10+
): bool
611
{
712
}

stubs/ext/sodium/sodium_crypto_aead_aegis128l_decrypt.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
#endif
44
#ifdef crypto_aead_aegis128l_KEYBYTES
55
#[\Since('8.4')]
6-
function sodium_crypto_aead_aegis128l_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string|false
6+
function sodium_crypto_aead_aegis128l_decrypt(
7+
string $ciphertext,
8+
string $additional_data,
9+
string $nonce,
10+
#[\SensitiveParameter]
11+
string $key
12+
): string|false
713
{
814
}
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<?php
22

33
#[\Since('8.4')]
4-
function sodium_crypto_aead_aegis128l_encrypt(#[\SensitiveParameter] string $message, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string
4+
function sodium_crypto_aead_aegis128l_encrypt(
5+
#[\SensitiveParameter]
6+
string $message,
7+
string $additional_data,
8+
string $nonce,
9+
#[\SensitiveParameter]
10+
string $key
11+
): string
512
{
613
}

stubs/ext/sodium/sodium_crypto_aead_aegis256_decrypt.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
#endif
44
#ifdef crypto_aead_aegis256_KEYBYTES
55
#[\Since('8.4')]
6-
function sodium_crypto_aead_aegis256_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string|false
6+
function sodium_crypto_aead_aegis256_decrypt(
7+
string $ciphertext,
8+
string $additional_data,
9+
string $nonce,
10+
#[\SensitiveParameter]
11+
string $key
12+
): string|false
713
{
814
}
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<?php
22

33
#[\Since('8.4')]
4-
function sodium_crypto_aead_aegis256_encrypt(#[\SensitiveParameter] string $message, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string
4+
function sodium_crypto_aead_aegis256_encrypt(
5+
#[\SensitiveParameter]
6+
string $message,
7+
string $additional_data,
8+
string $nonce,
9+
#[\SensitiveParameter]
10+
string $key
11+
): string
512
{
613
}
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<?php
22

33
#[\Since('8.2')]
4-
function sodium_crypto_stream_xchacha20_xor_ic(#[\SensitiveParameter] string $message, string $nonce, int $counter, #[\SensitiveParameter] string $key): string
4+
function sodium_crypto_stream_xchacha20_xor_ic(
5+
#[\SensitiveParameter]
6+
string $message,
7+
string $nonce,
8+
int $counter,
9+
#[\SensitiveParameter]
10+
string $key
11+
): string
512
{
613
}

0 commit comments

Comments
 (0)