File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ PHP NEWS
1515 configured). (nielsdos)
1616 . Fixed bug GH-19719 (Allow empty statements before declare(strict_types)).
1717 (nielsdos)
18+ . Casting floats that are not representable as ints now emits a warning.
19+ (Girgias)
1820
1921- Curl:
2022 . Fix cloning of CURLOPT_POSTFIELDS when using the clone operator instead
Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ PHP 8.5 UPGRADE NOTES
5555 . Destructing non-array values (other than NULL) using [] or list() now
5656 emits a warning.
5757 RFC: https://wiki.php.net/rfc/warnings-php-8-5#destructuring_non-array_values
58+ . A warning is now emitted when casting floats (or strings that look like
59+ floats) to int if they cannot be represented as one. This affects explicit
60+ int casts and implicit int casts.
61+ RFC: https://wiki.php.net/rfc/warnings-php-8-5#casting_out_of_range_floats_to_int
5862
5963- BZ2:
6064 . bzcompress() now throws a ValueError when $block_size is not between
You can’t perform that action at this time.
0 commit comments