Skip to content

Commit e8c4ae8

Browse files
committed
Improve wording and spelling consistency in UPGRADING
[ci skip]
1 parent bbbccf0 commit e8c4ae8

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

UPGRADING

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -217,26 +217,24 @@ PHP 8.0 UPGRADE NOTES
217217
. debug_backtrace() and Exception::getTrace() will no longer provide
218218
references to arguments. It will not be possible to change function
219219
arguments through the backtrace.
220-
. The concept of numeric-string has been altered to be less error prone.
221-
Trailing whitespaces are now allowed in numeric strings making it symmetric
222-
with how leading whitespaces were treated.
223-
This mostly affects:
220+
. Numeric string handling has been altered to be more intuitive and less
221+
error-prone. Trailing whitespace is now allowed in numeric strings for
222+
consistency with how leading whitespace is treated. This mostly affects:
224223
- The is_numeric() function
225224
- String-to-string comparisons
226225
- Type declarations
227-
- Increment and Decrement operations
228-
The concept of "leading-numeric string" has been mostly dropped, the cases
229-
where this concept remains is in order to ease migration.
230-
String which emitted an E_NOTICE "A non well formed numeric value encountered"
231-
will now emit an E_WARNING "A non-numeric value encountered"
232-
and all strings which emitted an E_WARNING "A non-numeric value encountered"
233-
will now throw a TypeError.
234-
This mostly affects:
226+
- Increment and decrement operations
227+
The concept of a "leading-numeric string" has been mostly dropped; the
228+
cases where this remains exist in order to ease migration. Strings which
229+
emitted an E_NOTICE "A non well formed numeric value encountered" will now
230+
emit an E_WARNING "A non-numeric value encountered" and all strings which
231+
emitted an E_WARNING "A non-numeric value encountered" will now throw a
232+
TypeError. This mostly affects:
235233
- Arithmetic operations
236234
- Bitwise operations
237235
This E_WARNING to TypeError change also affects the E_WARNING
238-
"Illegal string offset 'string'" for illegal string offsets.
239-
This does not change the behaviour of explicit casts to int/float from strings.
236+
"Illegal string offset 'string'" for illegal string offsets. The behavior
237+
of explicit casts to int/float from strings has not been changed.
240238
RFC: https://wiki.php.net/rfc/saner-numeric-strings
241239

242240
- COM:
@@ -356,7 +354,7 @@ PHP 8.0 UPGRADE NOTES
356354
now be empty.
357355
. The $is_hex parameter, which was not used internally, has been removed from
358356
mb_decode_numericentity().
359-
. The legacy behaviour of passing the encoding as the third argument instead
357+
. The legacy behavior of passing the encoding as the third argument instead
360358
of an offset for the mb_strrpos() function has been removed, provide an
361359
explicit 0 offset with the encoding as the fourth argument instead.
362360
. The ISO_8859-* character encoding aliases have been replaced by ISO8859-*
@@ -370,7 +368,7 @@ PHP 8.0 UPGRADE NOTES
370368

371369
- PCRE:
372370
. When passing invalid escape sequences they are no longer interpreted as
373-
literals. This behaviour previously required the X modifier - which is
371+
literals. This behavior previously required the X modifier - which is
374372
now ignored.
375373

376374
- PDO:

0 commit comments

Comments
 (0)