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
}

0 commit comments

Comments
 (0)