Skip to content

Commit 4a2945f

Browse files
committed
Update stubs
1 parent 70d451d commit 4a2945f

12 files changed

+18
-14
lines changed

Diff for: Php8StubsMap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2816,6 +2816,7 @@ public function __construct(int $phpVersionId)
28162816
'mb_rtrim' => 'stubs/ext/mbstring/mb_rtrim.php',
28172817
'mb_trim' => 'stubs/ext/mbstring/mb_trim.php',
28182818
'mb_ucfirst' => 'stubs/ext/mbstring/mb_ucfirst.php',
2819+
'pcntl\\qosclass' => 'stubs/ext/pcntl/Pcntl/QosClass.php',
28192820
'pcntl_getcpu' => 'stubs/ext/pcntl/pcntl_getcpu.php',
28202821
'pcntl_getcpuaffinity' => 'stubs/ext/pcntl/pcntl_getcpuaffinity.php',
28212822
'pcntl_getqos_class' => 'stubs/ext/pcntl/pcntl_getqos_class.php',
@@ -2830,7 +2831,6 @@ public function __construct(int $phpVersionId)
28302831
'pg_result_memory_size' => 'stubs/ext/pgsql/pg_result_memory_size.php',
28312832
'pg_set_chunked_rows_size' => 'stubs/ext/pgsql/pg_set_chunked_rows_size.php',
28322833
'pg_socket_poll' => 'stubs/ext/pgsql/pg_socket_poll.php',
2833-
'qosclass' => 'stubs/ext/pcntl/QosClass.php',
28342834
'request_parse_body' => 'stubs/ext/standard/request_parse_body.php',
28352835
'sodium_crypto_aead_aegis128l_decrypt' => 'stubs/ext/sodium/sodium_crypto_aead_aegis128l_decrypt.php',
28362836
'sodium_crypto_aead_aegis128l_encrypt' => 'stubs/ext/sodium/sodium_crypto_aead_aegis128l_encrypt.php',

Diff for: stubs/ext/intl/formatter/NumberFormatter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -910,9 +910,9 @@ public function getErrorMessage()
910910
#[\Until('8.4')]
911911
public const TYPE_CURRENCY = UNKNOWN;
912912
/**
913-
* @deprecated
914913
* @cvalue FORMAT_TYPE_CURRENCY
915914
*/
915+
#[\Deprecated(since: '8.3')]
916916
#[\Since('8.4')]
917917
public const int TYPE_CURRENCY = UNKNOWN;
918918
}

Diff for: stubs/ext/mysqli/mysqli.php

-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ public function execute_query(string $query, ?array $params = null): mysqli_resu
9797
/**
9898
* @tentative-return-type
9999
* @alias mysqli_get_client_info
100-
* @deprecated 8.1.0
101100
* @return string
102101
*/
103102
public function get_client_info()

Diff for: stubs/ext/odbc/odbc_result_all.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
function odbc_result_all($statement, string $format = ""): int|false
66
{
77
}
8-
/** @deprecated */
8+
#[\Deprecated(since: '8.1')]
99
#[\Since('8.4')]
1010
function odbc_result_all(\Odbc\Result $statement, string $format = ""): int|false
1111
{

Diff for: stubs/ext/pcntl/QosClass.php renamed to stubs/ext/pcntl/Pcntl/QosClass.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
#endif
4-
#ifdef HAVE_PTHREAD_SET_QOS_CLASS_SELF_NP
3+
namespace Pcntl;
4+
55
#[\Since('8.4')]
66
enum QosClass
77
{

Diff for: stubs/ext/pcntl/pcntl_getqos_class.php

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

3+
#endif
4+
#ifdef HAVE_PTHREAD_SET_QOS_CLASS_SELF_NP
35
#[\Since('8.4')]
4-
function pcntl_getqos_class(): \QosClass
6+
function pcntl_getqos_class(): \Pcntl\QosClass
57
{
68
}

Diff for: stubs/ext/pcntl/pcntl_setqos_class.php

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

33
#[\Since('8.4')]
4-
function pcntl_setqos_class(\QosClass $qos_class = QosClass::Default): void
4+
function pcntl_setqos_class(\Pcntl\QosClass $qos_class = Pcntl\QosClass::Default): void
55
{
66
}

Diff for: stubs/ext/reflection/ReflectionFunction.php

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public function isAnonymous(): bool
1414
}
1515
/**
1616
* @tentative-return-type
17-
* @deprecated ReflectionFunction can no longer be constructed for disabled functions
1817
* @return bool
1918
*/
2019
public function isDisabled()

Diff for: stubs/ext/reflection/ReflectionParameter.php

-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public function getDeclaringClass()
5656
}
5757
/**
5858
* @tentative-return-type
59-
* @deprecated Use ReflectionParameter::getType() instead
6059
* @return (ReflectionClass | null)
6160
*/
6261
public function getClass()
@@ -78,15 +77,13 @@ public function getType()
7877
}
7978
/**
8079
* @tentative-return-type
81-
* @deprecated Use ReflectionParameter::getType() instead
8280
* @return bool
8381
*/
8482
public function isArray()
8583
{
8684
}
8785
/**
8886
* @tentative-return-type
89-
* @deprecated Use ReflectionParameter::getType() instead
9087
* @return bool
9188
*/
9289
public function isCallable()

Diff for: stubs/ext/spl/SplFileInfo.php

-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ public function __debugInfo()
208208
{
209209
}
210210
/**
211-
* @deprecated
212211
* @tentative-return-type
213212
* @return void
214213
*/

Diff for: stubs/ext/standard/strptime.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/* datetime.c */
44
#if HAVE_STRPTIME
55
/**
6-
* @deprecated
76
* @refcount 1
87
*/
98
function strptime(string $timestamp, string $format): array|false

Diff for: stubs/ext/zip/ZipArchive.php

+9
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,15 @@ public static function isEncryptionMethodSupported(int $method, bool $enc = true
12051205
* @deprecated
12061206
*/
12071207
#[\Since('8.3')]
1208+
#[\Until('8.4')]
1209+
public const int FL_RECOMPRESS = UNKNOWN;
1210+
/* deprecated in libzip 1.10.0 */
1211+
#ifdef ZIP_FL_RECOMPRESS
1212+
/**
1213+
* @cvalue ZIP_FL_RECOMPRESS
1214+
*/
1215+
#[\Deprecated(since: '8.3')]
1216+
#[\Since('8.4')]
12081217
public const int FL_RECOMPRESS = UNKNOWN;
12091218
#endif
12101219
/**

0 commit comments

Comments
 (0)