Skip to content

Commit b355315

Browse files
committed
[ci skip] Fix UPGRADING section for the mt_srand() default
This is an existing function and thus belongs into section 5, not section 6.
1 parent c2dd272 commit b355315

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

UPGRADING

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ PHP 8.3 UPGRADE NOTES
202202
. pg_insert and pg_convert raises a ValueError or a TypeError instead of a WARNING when the
203203
value/type of a field does not match properly with a PostGreSQL's type.
204204

205+
- Random:
206+
. Changed mt_srand() and srand() to not check the number of arguments to
207+
determine whether a random seed should be used. Passing null will generate
208+
a random seed, 0 will use zero as the seed. The functions are now consistent
209+
with Mt19937::__construct().
210+
205211
- Standard:
206212
. E_NOTICEs emitted by unserialize() have been promoted to E_WARNING.
207213
RFC: https://wiki.php.net/rfc/improve_unserialize_error_handling
@@ -252,10 +258,6 @@ PHP 8.3 UPGRADE NOTES
252258
RFC: https://wiki.php.net/rfc/randomizer_additions
253259
. Added Randomizer::nextFloat(), ::getFloat(), and IntervalBoundary.
254260
RFC: https://wiki.php.net/rfc/randomizer_additions
255-
. Changed mt_srand() and srand() to not check the number of arguments to
256-
determine whether a random seed should be used. Passing null will generate
257-
a random seed, 0 will use zero as the seed. The functions are now consistent
258-
with Mt19937::__construct().
259261

260262
- Reflection:
261263
. Return type of ReflectionClass::getStaticProperties() is no longer nullable.

0 commit comments

Comments
 (0)