Skip to content

Commit b818673

Browse files
committed
Upgrading
1 parent 07e8ce0 commit b818673

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

UPGRADING

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ PHP 8.4 UPGRADE NOTES
1919
1. Backward Incompatible Changes
2020
========================================
2121

22+
- Core:
23+
. isset() and empty() now check that the offset for string values is of the
24+
correct type i.e. numeric, similarly to array and objects.
25+
This means code similar to:
26+
$a = 'string';
27+
var_dump(isset($a['b']));
28+
var_dump(empty($a['b']));
29+
will now warn with: "Cannot access offset of type string on string"
30+
when previously it silently returned false.
31+
2232
- DOM:
2333
. New methods and constants were added to some DOM classes. If you inherit
2434
from these and you happen to have a method or property with the same name,

0 commit comments

Comments
 (0)