Skip to content

Commit cd15f16

Browse files
committed
Copy UPGRADING entry last with rebase
1 parent 78b70d1 commit cd15f16

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

UPGRADING

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ PHP 8.3 UPGRADE NOTES
2626
(`fiber.stack_size-zend.reserved_stack_size` for fibers).
2727
. Class constants can now be accessed dynamically using the C::{$name} syntax.
2828
RFC: https://wiki.php.net/rfc/dynamic_class_constant_fetch
29+
. isset() and empty() now check that the offset for string values if of the
30+
correct type i.e. numeric, similarly to array and objects.
31+
This means code similar to:
32+
$a = 'string';
33+
var_dump(isset($a['b']));
34+
var_dump(empty($a['b']));
35+
will now warn with: "Cannot access offset of type string on string"
36+
when previously it silently returned false.
2937

3038
========================================
3139
2. New Features

0 commit comments

Comments
 (0)