Skip to content

Commit 2113833

Browse files
committed
[ci skip] Add the change of Exception for random_(int|bytes) to UPGRADING
1 parent 6006ed0 commit 2113833

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

UPGRADING

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ PHP 8.2 UPGRADE NOTES
201201
dba_fetch(string|array $key, $skip, $dba): string|false
202202
is still accepted, but it is recommended to use the new standard variant.
203203

204+
- Random
205+
. random_bytes() and random_int() now throw \Random\RandomException on CSPRNG failure.
206+
Previously a plain \Exception was thrown.
207+
204208
- SPL
205209
. The $iterator parameter of iterator_to_array() and iterator_count() is
206210
widened to iterable from Iterator, allowing arrays to be passed.

0 commit comments

Comments
 (0)