Skip to content

Commit 5b866d5

Browse files
committed
Update stubs
1 parent f8c515d commit 5b866d5

12 files changed

+79
-0
lines changed

Php8StubsMap.php

+3
Original file line numberDiff line numberDiff line change
@@ -2734,6 +2734,8 @@ public function __construct(int $phpVersionId)
27342734

27352735
$functions = \array_merge($functions, [
27362736
'json_validate' => 'stubs/ext/json/json_validate.php',
2737+
'ldap_connect_wallet' => 'stubs/ext/ldap/ldap_connect_wallet.php',
2738+
'ldap_exop_sync' => 'stubs/ext/ldap/ldap_exop_sync.php',
27372739
'mb_str_pad' => 'stubs/ext/mbstring/mb_str_pad.php',
27382740
'pg_enter_pipeline_mode' => 'stubs/ext/pgsql/pg_enter_pipeline_mode.php',
27392741
'pg_exit_pipeline_mode' => 'stubs/ext/pgsql/pg_exit_pipeline_mode.php',
@@ -2748,6 +2750,7 @@ public function __construct(int $phpVersionId)
27482750
'socket_atmark' => 'stubs/ext/sockets/socket_atmark.php',
27492751
'str_decrement' => 'stubs/ext/standard/str_decrement.php',
27502752
'str_increment' => 'stubs/ext/standard/str_increment.php',
2753+
'stream_context_set_options' => 'stubs/ext/standard/stream_context_set_options.php',
27512754
]);
27522755
}
27532756

stubs/ext/date/DatePeriod.php

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
class DatePeriod implements \IteratorAggregate
44
{
5+
#[\Since('8.3')]
6+
public static function createFromISO8601String(string $specification, int $options = 0): static
7+
{
8+
}
59
/**
610
* @param DateTimeInterface|string $start
711
* @param DateInterval|int $interval

stubs/ext/hash/hash_pbkdf2.php

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<?php
22

3+
#[\Until('8.1')]
34
function hash_pbkdf2(string $algo, string $password, string $salt, int $iterations, int $length = 0, bool $binary = false): string
45
{
6+
}
7+
/** @refcount 1 */
8+
#[\Since('8.1')]
9+
function hash_pbkdf2(string $algo, string $password, string $salt, int $iterations, int $length = 0, bool $binary = false, array $options = []): string
10+
{
511
}

stubs/ext/intl/calendar/IntlCalendar.php

+9
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,15 @@ public function isSet(int $field)
308308
public function set(int $year, int $month, int $dayOfMonth = UNKNOWN, int $hour = UNKNOWN, int $minute = UNKNOWN, int $second = UNKNOWN)
309309
{
310310
}
311+
// TODO make return type void
312+
#[\Since('8.3')]
313+
public function setDate(int $year, int $month, int $dayOfMonth): void
314+
{
315+
}
316+
#[\Since('8.3')]
317+
public function setDateTime(int $year, int $month, int $dayOfMonth, int $hour, int $minute, ?int $second = null): void
318+
{
319+
}
311320
/**
312321
* @return bool
313322
* @alias intlcal_set_first_day_of_week

stubs/ext/intl/calendar/IntlGregorianCalendar.php

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
class IntlGregorianCalendar extends \IntlCalendar
44
{
5+
#[\Since('8.3')]
6+
public static function createFromDate(int $year, int $month, int $dayOfMonth): static
7+
{
8+
}
9+
#[\Since('8.3')]
10+
public static function createFromDateTime(int $year, int $month, int $dayOfMonth, int $hour, int $minute, ?int $second = null): static
11+
{
12+
}
513
/**
614
* @param DateTimeZone|IntlTimeZone|string|int|null $timezoneOrYear
715
* @param string|int|null $localeOrMonth
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
#ifdef LDAP_API_FEATURE_X_OPENLDAP
4+
#[\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
6+
{
7+
}

stubs/ext/ldap/ldap_exop_sync.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
/**
4+
* @param string $response_data
5+
* @param string $response_oid
6+
*/
7+
#[\Since('8.3')]
8+
function ldap_exop_sync(\LDAP\Connection $ldap, string $request_oid, ?string $request_data = null, ?array $controls = NULL, &$response_data = null, &$response_oid = null): \LDAP\Result|bool
9+
{
10+
}

stubs/ext/pgsql/pg_fetch_result.php

+9
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ function pg_fetch_result($result, $row, string|int $field = UNKNOWN): string|fal
1313
* @refcount 1
1414
*/
1515
#[\Since('8.1')]
16+
#[\Until('8.3')]
17+
function pg_fetch_result(\PgSql\Result $result, $row, string|int $field = UNKNOWN): string|false|null
18+
{
19+
}
20+
/**
21+
* @param string|int|null $row
22+
* @refcount 1
23+
*/
24+
#[\Since('8.3')]
1625
function pg_fetch_result(\PgSql\Result $result, $row, string|int $field = UNKNOWN): string|false|null
1726
{
1827
}

stubs/ext/pgsql/pg_field_is_null.php

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ function pg_field_is_null($result, $row, string|int $field = UNKNOWN): int|false
1010
}
1111
/** @param string|int $row */
1212
#[\Since('8.1')]
13+
#[\Until('8.3')]
14+
function pg_field_is_null(\PgSql\Result $result, $row, string|int $field = UNKNOWN): int|false
15+
{
16+
}
17+
/** @param string|int|null $row */
18+
#[\Since('8.3')]
1319
function pg_field_is_null(\PgSql\Result $result, $row, string|int $field = UNKNOWN): int|false
1420
{
1521
}

stubs/ext/pgsql/pg_field_prtlen.php

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ function pg_field_prtlen($result, $row, string|int $field = UNKNOWN): int|false
1010
}
1111
/** @param string|int $row */
1212
#[\Since('8.1')]
13+
#[\Until('8.3')]
14+
function pg_field_prtlen(\PgSql\Result $result, $row, string|int $field = UNKNOWN): int|false
15+
{
16+
}
17+
/** @param string|int|null $row */
18+
#[\Since('8.3')]
1319
function pg_field_prtlen(\PgSql\Result $result, $row, string|int $field = UNKNOWN): int|false
1420
{
1521
}

stubs/ext/reflection/ReflectionMethod.php

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ class ReflectionMethod extends \ReflectionFunctionAbstract
55
public function __construct(object|string $objectOrMethod, ?string $method = null)
66
{
77
}
8+
#[\Since('8.3')]
9+
public static function createFromMethodName(string $method): static
10+
{
11+
}
812
public function __toString(): string
913
{
1014
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
/** @param resource $context */
4+
#[\Since('8.3')]
5+
function stream_context_set_options($context, array $options): bool
6+
{
7+
}

0 commit comments

Comments
 (0)