Skip to content

Commit 9189f49

Browse files
committed
Update stubs
1 parent 6055fa9 commit 9189f49

File tree

579 files changed

+1088
-877
lines changed

Some content is hidden

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

579 files changed

+1088
-877
lines changed

Php8StubsMap.php

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2708,6 +2708,47 @@ public function __construct(int $phpVersionId)
27082708
));
27092709
}
27102710

2711+
if ($phpVersionId >= 80200) {
2712+
$classes = \array_merge($classes, array (
2713+
'random\\engine\\mt19937' => 'stubs/ext/random/Random/Engine/Mt19937.php',
2714+
'random\\engine\\pcgoneseq128xslrr64' => 'stubs/ext/random/Random/Engine/PcgOneseq128XslRr64.php',
2715+
'random\\engine\\xoshiro256starstar' => 'stubs/ext/random/Random/Engine/Xoshiro256StarStar.php',
2716+
'random\\engine\\secure' => 'stubs/ext/random/Random/Engine/Secure.php',
2717+
'random\\engine' => 'stubs/ext/random/Random/Engine.php',
2718+
'random\\cryptosafeengine' => 'stubs/ext/random/Random/CryptoSafeEngine.php',
2719+
'random\\randomizer' => 'stubs/ext/random/Random/Randomizer.php',
2720+
'zendtestforbiddynamiccall' => 'stubs/ext/zend_test/ZendTestForbidDynamicCall.php',
2721+
'allowdynamicproperties' => 'stubs/Zend/AllowDynamicProperties.php',
2722+
'sensitiveparameter' => 'stubs/Zend/SensitiveParameter.php',
2723+
'sensitiveparametervalue' => 'stubs/Zend/SensitiveParameterValue.php',
2724+
));
2725+
$functions = \array_merge($functions, array (
2726+
'sodium_crypto_stream_xchacha20_xor_ic' => 'stubs/ext/sodium/sodium_crypto_stream_xchacha20_xor_ic.php',
2727+
'lcg_value' => 'stubs/ext/random/lcg_value.php',
2728+
'mt_srand' => 'stubs/ext/random/mt_srand.php',
2729+
'srand' => 'stubs/ext/random/srand.php',
2730+
'rand' => 'stubs/ext/random/rand.php',
2731+
'mt_rand' => 'stubs/ext/random/mt_rand.php',
2732+
'mt_getrandmax' => 'stubs/ext/random/mt_getrandmax.php',
2733+
'getrandmax' => 'stubs/ext/random/getrandmax.php',
2734+
'random_bytes' => 'stubs/ext/random/random_bytes.php',
2735+
'random_int' => 'stubs/ext/random/random_int.php',
2736+
'curl_upkeep' => 'stubs/ext/curl/curl_upkeep.php',
2737+
'mysqli_execute_query' => 'stubs/ext/mysqli/mysqli_execute_query.php',
2738+
'oci_set_prefetch_lob' => 'stubs/ext/oci8/oci_set_prefetch_lob.php',
2739+
'odbc_connection_string_is_quoted' => 'stubs/ext/odbc/odbc_connection_string_is_quoted.php',
2740+
'odbc_connection_string_should_quote' => 'stubs/ext/odbc/odbc_connection_string_should_quote.php',
2741+
'odbc_connection_string_quote' => 'stubs/ext/odbc/odbc_connection_string_quote.php',
2742+
'ini_parse_quantity' => 'stubs/ext/standard/ini_parse_quantity.php',
2743+
'memory_reset_peak_usage' => 'stubs/ext/standard/memory_reset_peak_usage.php',
2744+
'pcntl_forkx' => 'stubs/ext/pcntl/pcntl_forkx.php',
2745+
'zendtestintenum' => 'stubs/ext/zend_test/ZendTestIntEnum.php',
2746+
'zend_test_compile_string' => 'stubs/ext/zend_test/zend_test_compile_string.php',
2747+
'zend_test_zend_ini_parse_quantity' => 'stubs/ext/zend_test/zend_test_zend_ini_parse_quantity.php',
2748+
'zend_test_zend_ini_parse_uquantity' => 'stubs/ext/zend_test/zend_test_zend_ini_parse_uquantity.php',
2749+
));
2750+
}
2751+
27112752
// UPDATE BELONGS HERE
27122753
$this->classes = $classes;
27132754
$this->functions = $functions;

stubs/Zend/AllowDynamicProperties.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
#[\Attribute(Attribute::TARGET_CLASS)]
4+
#[\Since('8.2')]
5+
final class AllowDynamicProperties
6+
{
7+
public function __construct()
8+
{
9+
}
10+
}

stubs/Zend/Attribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/** @generate-class-entries */
3+
/** @generate-function-entries */
44
final class Attribute
55
{
66
public function __construct(int $flags = Attribute::TARGET_ALL)

stubs/Zend/Closure.php

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

3-
/** @generate-class-entries */
4-
/**
5-
* @strict-properties
6-
* @not-serializable
7-
*/
3+
/** @generate-function-entries */
84
final class Closure
95
{
106
private function __construct()

stubs/Zend/Generator.php

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

3-
/** @generate-class-entries */
4-
/**
5-
* @strict-properties
6-
* @not-serializable
7-
*/
3+
/** @generate-function-entries */
84
final class Generator implements \Iterator
95
{
106
public function rewind() : void

stubs/Zend/InternalIterator.php

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,23 @@
11
<?php
22

3-
/**
4-
* @not-serializable
5-
*/
63
final class InternalIterator implements \Iterator
74
{
8-
private function __construct()
9-
{
10-
}
115
/** @return mixed */
126
#[\Until('8.1')]
137
public function current();
14-
#[\Since('8.1')]
15-
public function current() : mixed
16-
{
17-
}
188
/** @return mixed */
199
#[\Until('8.1')]
2010
public function key();
11+
private function __construct();
2112
#[\Since('8.1')]
22-
public function key() : mixed
23-
{
24-
}
25-
public function next() : void
26-
{
27-
}
28-
public function valid() : bool
13+
public function current() : mixed
2914
{
3015
}
31-
public function rewind() : void
16+
#[\Since('8.1')]
17+
public function key() : mixed
3218
{
3319
}
20+
public function next() : void;
21+
public function valid() : bool;
22+
public function rewind() : void;
3423
}

stubs/Zend/SensitiveParameter.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
/**
4+
* @strict-properties
5+
*/
6+
#[\Attribute(Attribute::TARGET_PARAMETER)]
7+
#[\Since('8.2')]
8+
final class SensitiveParameter
9+
{
10+
public function __construct()
11+
{
12+
}
13+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
/**
4+
* @strict-properties
5+
* @not-serializable
6+
*/
7+
#[\Since('8.2')]
8+
final class SensitiveParameterValue
9+
{
10+
private readonly mixed $value;
11+
public function __construct(mixed $value)
12+
{
13+
}
14+
public function getValue() : mixed
15+
{
16+
}
17+
public function __debugInfo() : array
18+
{
19+
}
20+
}

stubs/Zend/Throwable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/** @generate-class-entries */
3+
/** @generate-function-entries */
44
interface Throwable extends \Stringable
55
{
66
public function getMessage() : string;

stubs/Zend/Traversable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/** @generate-class-entries */
3+
/** @generate-function-entries */
44
interface Traversable
55
{
66
}

stubs/Zend/WeakMap.php

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

3-
/**
4-
* @strict-properties
5-
* @not-serializable
6-
*/
73
final class WeakMap implements \ArrayAccess, \Countable, \IteratorAggregate
84
{
9-
/** @param object $object */
5+
/**
6+
* @param object $object
7+
*/
108
public function offsetGet($object) : mixed
119
{
1210
}

stubs/Zend/WeakReference.php

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

3-
/** @generate-class-entries */
4-
/**
5-
* @strict-properties
6-
* @not-serializable
7-
*/
3+
/** @generate-function-entries */
84
final class WeakReference
95
{
106
public function __construct()

stubs/Zend/get_resource_type.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
22

3-
/**
4-
* @param resource $resource
5-
* @refcount 1
6-
*/
3+
/** @param resource $resource */
74
function get_resource_type($resource) : string
85
{
96
}

stubs/Zend/restore_error_handler.php

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

3+
#[\Until('8.2')]
34
function restore_error_handler() : bool
45
{
6+
}
7+
#[\Since('8.2')]
8+
function restore_error_handler() : \true
9+
{
510
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
#[\Until('8.2')]
34
function restore_exception_handler() : bool
45
{
6+
}
7+
#[\Since('8.2')]
8+
function restore_exception_handler() : \true
9+
{
510
}

stubs/Zend/set_error_handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/** @return callable|null */
3+
/** @return string|array|object|null */
44
function set_error_handler(?callable $callback, int $error_levels = E_ALL)
55
{
66
}

stubs/Zend/set_exception_handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/** @return callable|null */
3+
/** @return string|array|object|null */
44
function set_exception_handler(?callable $callback)
55
{
66
}

stubs/Zend/zend_version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/** @refcount 1 */
3+
/** @generate-function-entries */
44
function zend_version() : string
55
{
66
}

stubs/ext/bcmath/bcadd.php

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

3-
/** @generate-class-entries */
4-
/** @refcount 1 */
3+
/** @generate-function-entries */
54
function bcadd(string $num1, string $num2, ?int $scale = null) : string
65
{
76
}

stubs/ext/bcmath/bcdiv.php

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

3-
/** @refcount 1 */
43
function bcdiv(string $num1, string $num2, ?int $scale = null) : string
54
{
65
}

stubs/ext/bcmath/bcmod.php

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

3-
/** @refcount 1 */
43
function bcmod(string $num1, string $num2, ?int $scale = null) : string
54
{
65
}

stubs/ext/bcmath/bcmul.php

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

3-
/** @refcount 1 */
43
function bcmul(string $num1, string $num2, ?int $scale = null) : string
54
{
65
}

stubs/ext/bcmath/bcpow.php

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

3-
/** @refcount 1 */
43
function bcpow(string $num, string $exponent, ?int $scale = null) : string
54
{
65
}

stubs/ext/bcmath/bcpowmod.php

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

3-
/** @refcount 1 */
43
function bcpowmod(string $num, string $exponent, string $modulus, ?int $scale = null) : string
54
{
65
}

stubs/ext/bcmath/bcsqrt.php

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

3-
/** @refcount 1 */
43
function bcsqrt(string $num, ?int $scale = null) : string
54
{
65
}

stubs/ext/bcmath/bcsub.php

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

3-
/** @refcount 1 */
43
function bcsub(string $num1, string $num2, ?int $scale = null) : string
54
{
65
}

stubs/ext/bz2/bzclose.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/**
44
* @param resource $bz
55
* @implementation-alias fclose
6-
* @no-verify Uses different parameter name
76
*/
87
function bzclose($bz) : bool
98
{

stubs/ext/bz2/bzflush.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/**
44
* @param resource $bz
55
* @implementation-alias fflush
6-
* @no-verify Uses different parameter name
76
*/
87
function bzflush($bz) : bool
98
{

stubs/ext/bz2/bzopen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/** @generate-class-entries */
3+
/** @generate-function-entries */
44
/**
55
* @param string|resource $file
66
* @return resource|false

stubs/ext/bz2/bzwrite.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/**
44
* @param resource $bz
55
* @implementation-alias fwrite
6-
* @no-verify Uses different parameter name
76
*/
87
function bzwrite($bz, string $data, ?int $length = null) : int|false
98
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/** @generate-class-entries */
3+
/** @generate-function-entries */
44
function cal_days_in_month(int $calendar, int $month, int $year) : int
55
{
66
}

stubs/ext/com_dotnet/COMPersistHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/** @generate-class-entries */
3+
/** @generate-function-entries */
44
final class COMPersistHelper
55
{
66
public function __construct(?variant $variant = null)

0 commit comments

Comments
 (0)