We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f412bc6 commit 19f643dCopy full SHA for 19f643d
UPGRADING
@@ -19,6 +19,16 @@ PHP 8.4 UPGRADE NOTES
19
1. Backward Incompatible Changes
20
========================================
21
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
+
32
- DOM:
33
. New methods and constants were added to some DOM classes. If you inherit
34
from these and you happen to have a method or property with the same name,
0 commit comments