Skip to content

Commit db84e44

Browse files
authored
Fix PcgOneseq128XslRr64::__construct() definition in random.stub.php (php#9235)
* Fix PcgOneseq128XslRr64::__construct() definition in random.stub.php The second parameter does not actually exist for a Oneseq PCG. It was removed from the RFC before it went into voting. * [ci skip] Add PcgOneseq128XslRr64 stub fix to NEWS
1 parent 822881b commit db84e44

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

NEWS

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ PHP NEWS
33
?? ??? ????, PHP 8.2.0beta3
44

55
- Random:
6+
. Fixed bug GH-9235 (non-existant $sequence parameter in stub for
7+
PcgOneseq128XslRr64::__construct()). (timwolla)
68
. Removed redundant RuntimeExceptions from Randomizer methods. The
79
exceptions thrown by the engines will be exposed directly. (timwolla)
810

ext/random/random.stub.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __debugInfo(): array {}
5959
*/
6060
final class PcgOneseq128XslRr64 implements \Random\Engine
6161
{
62-
public function __construct(string|int|null $seed = null, string|int $sequence = 0) {}
62+
public function __construct(string|int|null $seed = null) {}
6363

6464
/** @implementation-alias Random\Engine\Mt19937::generate */
6565
public function generate(): string {}

ext/random/random_arginfo.h

+2-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)