Skip to content

Commit 66b0ffe

Browse files
committed
Update stubs
1 parent 83ec5a7 commit 66b0ffe

14 files changed

+14
-101
lines changed

stubs/ext/ldap/ldap_connect_wallet.php

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

33
#ifdef LDAP_API_FEATURE_X_OPENLDAP
44
#[\Since('8.3')]
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
5+
function ldap_connect_wallet(?string $uri = null, string $wallet, #[\SensitiveParameter] string $password, int $auth_mode = GSLC_SSL_NO_AUTH): \LDAP\Connection|false
126
{
137
}

stubs/ext/odbc/odbc_connect.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ function odbc_connect(string $dsn, string $user, string $password, int $cursor_o
66
{
77
}
88
#[\Since('8.4')]
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
9+
function odbc_connect(string $dsn, ?string $user = null, #[\SensitiveParameter] ?string $password = null, int $cursor_option = SQL_CUR_USE_DRIVER): \Odbc\Connection|false
1610
{
1711
}

stubs/ext/odbc/odbc_pconnect.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ function odbc_pconnect(string $dsn, string $user, string $password, int $cursor_
66
{
77
}
88
#[\Since('8.4')]
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
9+
function odbc_pconnect(string $dsn, ?string $user = null, #[\SensitiveParameter] ?string $password = null, int $cursor_option = SQL_CUR_USE_DRIVER): \Odbc\Connection|false
1610
{
1711
}

stubs/ext/openssl/openssl_csr_new.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ 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(
13-
array $distinguished_names,
14-
#[\SensitiveParameter]
15-
&$private_key,
16-
?array $options = null,
17-
?array $extra_attributes = null
18-
): \OpenSSLCertificateSigningRequest|bool
12+
function openssl_csr_new(array $distinguished_names, #[\SensitiveParameter] &$private_key, ?array $options = null, ?array $extra_attributes = null): \OpenSSLCertificateSigningRequest|bool
1913
{
2014
}

stubs/ext/openssl/openssl_csr_sign.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ 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(
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
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
2213
{
2314
}

stubs/ext/openssl/openssl_password_hash.php

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

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

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

stubs/ext/pdo/PDO.php

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

stubs/ext/pgsql/pg_change_password.php

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

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

stubs/ext/sodium/sodium_crypto_aead_aegis128l_decrypt.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
#endif
44
#ifdef crypto_aead_aegis128l_KEYBYTES
55
#[\Since('8.4')]
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
6+
function sodium_crypto_aead_aegis128l_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string|false
137
{
148
}
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
<?php
22

33
#[\Since('8.4')]
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
4+
function sodium_crypto_aead_aegis128l_encrypt(#[\SensitiveParameter] string $message, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string
125
{
136
}

stubs/ext/sodium/sodium_crypto_aead_aegis256_decrypt.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
#endif
44
#ifdef crypto_aead_aegis256_KEYBYTES
55
#[\Since('8.4')]
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
6+
function sodium_crypto_aead_aegis256_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string|false
137
{
148
}
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
<?php
22

33
#[\Since('8.4')]
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
4+
function sodium_crypto_aead_aegis256_encrypt(#[\SensitiveParameter] string $message, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string
125
{
136
}
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
<?php
22

33
#[\Since('8.2')]
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
4+
function sodium_crypto_stream_xchacha20_xor_ic(#[\SensitiveParameter] string $message, string $nonce, int $counter, #[\SensitiveParameter] string $key): string
125
{
136
}

0 commit comments

Comments
 (0)