Skip to content

Commit 568bc08

Browse files
committed
Update stubs
1 parent d713e9c commit 568bc08

File tree

151 files changed

+6754
-2732
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+6754
-2732
lines changed

Php8StubsMap.php

Lines changed: 49 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2677,6 +2677,25 @@ public function __construct(int $phpVersionId)
26772677
if ($phpVersionId >= 80200) {
26782678
$classes = \array_merge($classes, [
26792679
'allowdynamicproperties' => 'stubs/Zend/AllowDynamicProperties.php',
2680+
'dateerror' => 'stubs/ext/date/DateError.php',
2681+
'dateexception' => 'stubs/ext/date/DateException.php',
2682+
'dateinvalidoperationexception' => 'stubs/ext/date/DateInvalidOperationException.php',
2683+
'dateinvalidtimezoneexception' => 'stubs/ext/date/DateInvalidTimeZoneException.php',
2684+
'datemalformedintervalstringexception' => 'stubs/ext/date/DateMalformedIntervalStringException.php',
2685+
'datemalformedperiodstringexception' => 'stubs/ext/date/DateMalformedPeriodStringException.php',
2686+
'datemalformedstringexception' => 'stubs/ext/date/DateMalformedStringException.php',
2687+
'dateobjecterror' => 'stubs/ext/date/DateObjectError.php',
2688+
'daterangeerror' => 'stubs/ext/date/DateRangeError.php',
2689+
'dom\\document' => 'stubs/ext/dom/DOM/Document.php',
2690+
'dom\\htmldocument' => 'stubs/ext/dom/DOM/HTMLDocument.php',
2691+
'dom\\xmldocument' => 'stubs/ext/dom/DOM/XMLDocument.php',
2692+
'override' => 'stubs/Zend/Override.php',
2693+
'pdodblib' => 'stubs/ext/pdo_dblib/PdoDblib.php',
2694+
'pdofirebird' => 'stubs/ext/pdo_firebird/PdoFirebird.php',
2695+
'pdomysql' => 'stubs/ext/pdo_mysql/PdoMysql.php',
2696+
'pdoodbc' => 'stubs/ext/pdo_odbc/PdoOdbc.php',
2697+
'pdopgsql' => 'stubs/ext/pdo_pgsql/PdoPgsql.php',
2698+
'pdosqlite' => 'stubs/ext/pdo_sqlite/PdoSqlite.php',
26802699
'random\\brokenrandomengineerror' => 'stubs/ext/random/Random/BrokenRandomEngineError.php',
26812700
'random\\cryptosafeengine' => 'stubs/ext/random/Random/CryptoSafeEngine.php',
26822701
'random\\engine' => 'stubs/ext/random/Random/Engine.php',
@@ -2687,66 +2706,69 @@ public function __construct(int $phpVersionId)
26872706
'random\\randomerror' => 'stubs/ext/random/Random/RandomError.php',
26882707
'random\\randomexception' => 'stubs/ext/random/Random/RandomException.php',
26892708
'random\\randomizer' => 'stubs/ext/random/Random/Randomizer.php',
2709+
'requestparsebodyexception' => 'stubs/Zend/RequestParseBodyException.php',
26902710
'sensitiveparameter' => 'stubs/Zend/SensitiveParameter.php',
26912711
'sensitiveparametervalue' => 'stubs/Zend/SensitiveParameterValue.php',
2712+
'sqlite3exception' => 'stubs/ext/sqlite3/SQLite3Exception.php',
26922713
]);
26932714

26942715
$functions = \array_merge($functions, [
26952716
'curl_upkeep' => 'stubs/ext/curl/curl_upkeep.php',
2717+
'dom\\import_simplexml' => 'stubs/ext/dom/DOM/import_simplexml.php',
26962718
'getrandmax' => 'stubs/ext/random/getrandmax.php',
2697-
'imap_is_open' => 'stubs/ext/imap/imap_is_open.php',
26982719
'ini_parse_quantity' => 'stubs/ext/standard/ini_parse_quantity.php',
2720+
'json_validate' => 'stubs/ext/json/json_validate.php',
26992721
'lcg_value' => 'stubs/ext/random/lcg_value.php',
2722+
'ldap_connect_wallet' => 'stubs/ext/ldap/ldap_connect_wallet.php',
2723+
'ldap_exop_sync' => 'stubs/ext/ldap/ldap_exop_sync.php',
27002724
'libxml_get_external_entity_loader' => 'stubs/ext/libxml/libxml_get_external_entity_loader.php',
2725+
'mb_ltrim' => 'stubs/ext/mbstring/mb_ltrim.php',
2726+
'mb_rtrim' => 'stubs/ext/mbstring/mb_rtrim.php',
2727+
'mb_str_pad' => 'stubs/ext/mbstring/mb_str_pad.php',
2728+
'mb_trim' => 'stubs/ext/mbstring/mb_trim.php',
27012729
'memory_reset_peak_usage' => 'stubs/ext/standard/memory_reset_peak_usage.php',
27022730
'mt_getrandmax' => 'stubs/ext/random/mt_getrandmax.php',
27032731
'mt_rand' => 'stubs/ext/random/mt_rand.php',
27042732
'mt_srand' => 'stubs/ext/random/mt_srand.php',
27052733
'mysqli_execute_query' => 'stubs/ext/mysqli/mysqli_execute_query.php',
2706-
'oci_set_prefetch_lob' => 'stubs/ext/oci8/oci_set_prefetch_lob.php',
27072734
'odbc_connection_string_is_quoted' => 'stubs/ext/odbc/odbc_connection_string_is_quoted.php',
27082735
'odbc_connection_string_quote' => 'stubs/ext/odbc/odbc_connection_string_quote.php',
27092736
'odbc_connection_string_should_quote' => 'stubs/ext/odbc/odbc_connection_string_should_quote.php',
27102737
'openssl_cipher_key_length' => 'stubs/ext/openssl/openssl_cipher_key_length.php',
27112738
'pcntl_forkx' => 'stubs/ext/pcntl/pcntl_forkx.php',
2739+
'pg_set_error_context_visibility' => 'stubs/ext/pgsql/pg_set_error_context_visibility.php',
2740+
'posix_eaccess' => 'stubs/ext/posix/posix_eaccess.php',
2741+
'posix_fpathconf' => 'stubs/ext/posix/posix_fpathconf.php',
2742+
'posix_pathconf' => 'stubs/ext/posix/posix_pathconf.php',
2743+
'posix_sysconf' => 'stubs/ext/posix/posix_sysconf.php',
27122744
'rand' => 'stubs/ext/random/rand.php',
2745+
'random\\intervalboundary' => 'stubs/ext/random/Random/IntervalBoundary.php',
27132746
'random_bytes' => 'stubs/ext/random/random_bytes.php',
27142747
'random_int' => 'stubs/ext/random/random_int.php',
2748+
'request_parse_body' => 'stubs/ext/standard/request_parse_body.php',
2749+
'socket_atmark' => 'stubs/ext/sockets/socket_atmark.php',
2750+
'sodium_crypto_aead_aegis128l_decrypt' => 'stubs/ext/sodium/sodium_crypto_aead_aegis128l_decrypt.php',
2751+
'sodium_crypto_aead_aegis128l_encrypt' => 'stubs/ext/sodium/sodium_crypto_aead_aegis128l_encrypt.php',
2752+
'sodium_crypto_aead_aegis128l_keygen' => 'stubs/ext/sodium/sodium_crypto_aead_aegis128l_keygen.php',
2753+
'sodium_crypto_aead_aegis256_decrypt' => 'stubs/ext/sodium/sodium_crypto_aead_aegis256_decrypt.php',
2754+
'sodium_crypto_aead_aegis256_encrypt' => 'stubs/ext/sodium/sodium_crypto_aead_aegis256_encrypt.php',
2755+
'sodium_crypto_aead_aegis256_keygen' => 'stubs/ext/sodium/sodium_crypto_aead_aegis256_keygen.php',
27152756
'sodium_crypto_stream_xchacha20_xor_ic' => 'stubs/ext/sodium/sodium_crypto_stream_xchacha20_xor_ic.php',
27162757
'srand' => 'stubs/ext/random/srand.php',
2758+
'str_decrement' => 'stubs/ext/standard/str_decrement.php',
2759+
'str_increment' => 'stubs/ext/standard/str_increment.php',
2760+
'stream_context_set_options' => 'stubs/ext/standard/stream_context_set_options.php',
27172761
]);
27182762
}
27192763

27202764
if ($phpVersionId >= 80300) {
27212765
$classes = \array_merge($classes, [
2722-
'dateerror' => 'stubs/ext/date/DateError.php',
2723-
'dateexception' => 'stubs/ext/date/DateException.php',
2724-
'dateinvalidoperationexception' => 'stubs/ext/date/DateInvalidOperationException.php',
2725-
'dateinvalidtimezoneexception' => 'stubs/ext/date/DateInvalidTimeZoneException.php',
2726-
'datemalformedintervalstringexception' => 'stubs/ext/date/DateMalformedIntervalStringException.php',
2727-
'datemalformedperiodstringexception' => 'stubs/ext/date/DateMalformedPeriodStringException.php',
2728-
'datemalformedstringexception' => 'stubs/ext/date/DateMalformedStringException.php',
2729-
'dateobjecterror' => 'stubs/ext/date/DateObjectError.php',
2730-
'daterangeerror' => 'stubs/ext/date/DateRangeError.php',
2731-
'override' => 'stubs/Zend/Override.php',
2732-
'sqlite3exception' => 'stubs/ext/sqlite3/SQLite3Exception.php',
2766+
27332767
]);
27342768

27352769
$functions = \array_merge($functions, [
2736-
'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',
2739-
'mb_str_pad' => 'stubs/ext/mbstring/mb_str_pad.php',
2740-
'pg_set_error_context_visibility' => 'stubs/ext/pgsql/pg_set_error_context_visibility.php',
2741-
'posix_eaccess' => 'stubs/ext/posix/posix_eaccess.php',
2742-
'posix_fpathconf' => 'stubs/ext/posix/posix_fpathconf.php',
2743-
'posix_pathconf' => 'stubs/ext/posix/posix_pathconf.php',
2744-
'posix_sysconf' => 'stubs/ext/posix/posix_sysconf.php',
2745-
'random\\intervalboundary' => 'stubs/ext/random/Random/IntervalBoundary.php',
2746-
'socket_atmark' => 'stubs/ext/sockets/socket_atmark.php',
2747-
'str_decrement' => 'stubs/ext/standard/str_decrement.php',
2748-
'str_increment' => 'stubs/ext/standard/str_increment.php',
2749-
'stream_context_set_options' => 'stubs/ext/standard/stream_context_set_options.php',
2770+
'imap_is_open' => 'stubs/ext/imap/imap_is_open.php',
2771+
'oci_set_prefetch_lob' => 'stubs/ext/oci8/oci_set_prefetch_lob.php',
27502772
]);
27512773
}
27522774

stubs/Zend/Attribute.php

Lines changed: 8 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -6,84 +6,28 @@ final class Attribute
66
public function __construct(int $flags = Attribute::TARGET_ALL)
77
{
88
}
9-
/**
10-
* @var int
11-
* @cvalue ZEND_ATTRIBUTE_TARGET_CLASS
12-
*/
13-
#[\Since('8.2')]
14-
#[\Until('8.3')]
15-
const TARGET_CLASS = UNKNOWN;
169
/** @cvalue ZEND_ATTRIBUTE_TARGET_CLASS */
17-
#[\Since('8.3')]
18-
const int TARGET_CLASS = UNKNOWN;
19-
/**
20-
* @var int
21-
* @cvalue ZEND_ATTRIBUTE_TARGET_FUNCTION
22-
*/
2310
#[\Since('8.2')]
24-
#[\Until('8.3')]
25-
const TARGET_FUNCTION = UNKNOWN;
11+
const int TARGET_CLASS = UNKNOWN;
2612
/** @cvalue ZEND_ATTRIBUTE_TARGET_FUNCTION */
27-
#[\Since('8.3')]
28-
const int TARGET_FUNCTION = UNKNOWN;
29-
/**
30-
* @var int
31-
* @cvalue ZEND_ATTRIBUTE_TARGET_METHOD
32-
*/
3313
#[\Since('8.2')]
34-
#[\Until('8.3')]
35-
const TARGET_METHOD = UNKNOWN;
14+
const int TARGET_FUNCTION = UNKNOWN;
3615
/** @cvalue ZEND_ATTRIBUTE_TARGET_METHOD */
37-
#[\Since('8.3')]
38-
const int TARGET_METHOD = UNKNOWN;
39-
/**
40-
* @var int
41-
* @cvalue ZEND_ATTRIBUTE_TARGET_PROPERTY
42-
*/
4316
#[\Since('8.2')]
44-
#[\Until('8.3')]
45-
const TARGET_PROPERTY = UNKNOWN;
17+
const int TARGET_METHOD = UNKNOWN;
4618
/** @cvalue ZEND_ATTRIBUTE_TARGET_PROPERTY */
47-
#[\Since('8.3')]
48-
const int TARGET_PROPERTY = UNKNOWN;
49-
/**
50-
* @var int
51-
* @cvalue ZEND_ATTRIBUTE_TARGET_CLASS_CONST
52-
*/
5319
#[\Since('8.2')]
54-
#[\Until('8.3')]
55-
const TARGET_CLASS_CONSTANT = UNKNOWN;
20+
const int TARGET_PROPERTY = UNKNOWN;
5621
/** @cvalue ZEND_ATTRIBUTE_TARGET_CLASS_CONST */
57-
#[\Since('8.3')]
58-
const int TARGET_CLASS_CONSTANT = UNKNOWN;
59-
/**
60-
* @var int
61-
* @cvalue ZEND_ATTRIBUTE_TARGET_PARAMETER
62-
*/
6322
#[\Since('8.2')]
64-
#[\Until('8.3')]
65-
const TARGET_PARAMETER = UNKNOWN;
23+
const int TARGET_CLASS_CONSTANT = UNKNOWN;
6624
/** @cvalue ZEND_ATTRIBUTE_TARGET_PARAMETER */
67-
#[\Since('8.3')]
68-
const int TARGET_PARAMETER = UNKNOWN;
69-
/**
70-
* @var int
71-
* @cvalue ZEND_ATTRIBUTE_TARGET_ALL
72-
*/
7325
#[\Since('8.2')]
74-
#[\Until('8.3')]
75-
const TARGET_ALL = UNKNOWN;
26+
const int TARGET_PARAMETER = UNKNOWN;
7627
/** @cvalue ZEND_ATTRIBUTE_TARGET_ALL */
77-
#[\Since('8.3')]
78-
const int TARGET_ALL = UNKNOWN;
79-
/**
80-
* @var int
81-
* @cvalue ZEND_ATTRIBUTE_IS_REPEATABLE
82-
*/
8328
#[\Since('8.2')]
84-
#[\Until('8.3')]
85-
const IS_REPEATABLE = UNKNOWN;
29+
const int TARGET_ALL = UNKNOWN;
8630
/** @cvalue ZEND_ATTRIBUTE_IS_REPEATABLE */
87-
#[\Since('8.3')]
31+
#[\Since('8.2')]
8832
const int IS_REPEATABLE = UNKNOWN;
8933
}

stubs/Zend/Override.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @strict-properties
55
*/
66
#[\Attribute(Attribute::TARGET_METHOD)]
7-
#[\Since('8.3')]
7+
#[\Since('8.2')]
88
final class Override
99
{
1010
public function __construct()
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
#[\Since('8.2')]
4+
class RequestParseBodyException extends \Exception
5+
{
6+
}

stubs/Zend/trigger_error.php

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

3+
#[\Until('8.2')]
4+
function trigger_error(string $message, int $error_level = E_USER_NOTICE): bool
5+
{
6+
}
7+
#[\Since('8.2')]
8+
#[\Until('8.3')]
9+
function trigger_error(string $message, int $error_level = E_USER_NOTICE): true
10+
{
11+
}
12+
#[\Since('8.3')]
313
function trigger_error(string $message, int $error_level = E_USER_NOTICE): bool
414
{
515
}

stubs/Zend/user_error.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
<?php
22

33
/** @alias trigger_error */
4+
#[\Until('8.2')]
5+
function user_error(string $message, int $error_level = E_USER_NOTICE): bool
6+
{
7+
}
8+
/** @alias trigger_error */
9+
#[\Since('8.2')]
10+
#[\Until('8.3')]
11+
function user_error(string $message, int $error_level = E_USER_NOTICE): true
12+
{
13+
}
14+
/** @alias trigger_error */
15+
#[\Since('8.3')]
416
function user_error(string $message, int $error_level = E_USER_NOTICE): bool
517
{
618
}

stubs/ext/date/DateError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @strict-properties
55
*/
6-
#[\Since('8.3')]
6+
#[\Since('8.2')]
77
class DateError extends \Error
88
{
99
}

stubs/ext/date/DateException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @strict-properties
55
*/
6-
#[\Since('8.3')]
6+
#[\Since('8.2')]
77
class DateException extends \Exception
88
{
99
}

stubs/ext/date/DateInvalidOperationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @strict-properties
55
*/
6-
#[\Since('8.3')]
6+
#[\Since('8.2')]
77
class DateInvalidOperationException extends \DateException
88
{
99
}

stubs/ext/date/DateInvalidTimeZoneException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @strict-properties
55
*/
6-
#[\Since('8.3')]
6+
#[\Since('8.2')]
77
class DateInvalidTimeZoneException extends \DateException
88
{
99
}

stubs/ext/date/DateMalformedIntervalStringException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @strict-properties
55
*/
6-
#[\Since('8.3')]
6+
#[\Since('8.2')]
77
class DateMalformedIntervalStringException extends \DateException
88
{
99
}

stubs/ext/date/DateMalformedPeriodStringException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @strict-properties
55
*/
6-
#[\Since('8.3')]
6+
#[\Since('8.2')]
77
class DateMalformedPeriodStringException extends \DateException
88
{
99
}

stubs/ext/date/DateMalformedStringException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @strict-properties
55
*/
6-
#[\Since('8.3')]
6+
#[\Since('8.2')]
77
class DateMalformedStringException extends \DateException
88
{
99
}

stubs/ext/date/DateObjectError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @strict-properties
55
*/
6-
#[\Since('8.3')]
6+
#[\Since('8.2')]
77
class DateObjectError extends \DateError
88
{
99
}

stubs/ext/date/DatePeriod.php

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

33
class DatePeriod implements \IteratorAggregate
44
{
5-
#[\Since('8.3')]
5+
#[\Since('8.2')]
66
public static function createFromISO8601String(string $specification, int $options = 0): static
77
{
88
}

stubs/ext/date/DateRangeError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @strict-properties
55
*/
6-
#[\Since('8.3')]
6+
#[\Since('8.2')]
77
class DateRangeError extends \DateError
88
{
99
}

0 commit comments

Comments
 (0)