Skip to content

Commit 714d2b9

Browse files
committed
Update stubs
1 parent 10595e5 commit 714d2b9

File tree

5 files changed

+37
-1
lines changed

5 files changed

+37
-1
lines changed

Php8StubsMap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2717,6 +2717,9 @@ public function __construct(int $phpVersionId)
27172717
'random\\engine' => 'stubs/ext/random/Random/Engine.php',
27182718
'random\\cryptosafeengine' => 'stubs/ext/random/Random/CryptoSafeEngine.php',
27192719
'random\\randomizer' => 'stubs/ext/random/Random/Randomizer.php',
2720+
'random\\randomerror' => 'stubs/ext/random/Random/RandomError.php',
2721+
'random\\brokenrandomengineerror' => 'stubs/ext/random/Random/BrokenRandomEngineError.php',
2722+
'random\\randomexception' => 'stubs/ext/random/Random/RandomException.php',
27202723
'zendtestforbiddynamiccall' => 'stubs/ext/zend_test/ZendTestForbidDynamicCall.php',
27212724
'zendtestns\\unlikelycompileerror' => 'stubs/ext/zend_test/ZendTestNS/UnlikelyCompileError.php',
27222725
'allowdynamicproperties' => 'stubs/Zend/AllowDynamicProperties.php',
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Random;
4+
5+
/**
6+
* @strict-properties
7+
*/
8+
#[\Since('8.2')]
9+
class BrokenRandomEngineError extends \Random\RandomError
10+
{
11+
}

stubs/ext/random/Random/Engine/PcgOneseq128XslRr64.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#[\Since('8.2')]
99
final class PcgOneseq128XslRr64 implements \Random\Engine
1010
{
11-
public function __construct(string|int|null $seed = null, string|int $sequence = 0)
11+
public function __construct(string|int|null $seed = null)
1212
{
1313
}
1414
/** @implementation-alias Random\Engine\Mt19937::generate */
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Random;
4+
5+
/**
6+
* @strict-properties
7+
*/
8+
#[\Since('8.2')]
9+
class RandomError extends \Error
10+
{
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Random;
4+
5+
/**
6+
* @strict-properties
7+
*/
8+
#[\Since('8.2')]
9+
class RandomException extends \Exception
10+
{
11+
}

0 commit comments

Comments
 (0)