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 78b70d1 commit cd15f16Copy full SHA for cd15f16
UPGRADING
@@ -26,6 +26,14 @@ PHP 8.3 UPGRADE NOTES
26
(`fiber.stack_size-zend.reserved_stack_size` for fibers).
27
. Class constants can now be accessed dynamically using the C::{$name} syntax.
28
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.
37
38
========================================
39
2. New Features
0 commit comments