Skip to content

Commit 127652f

Browse files
committed
UPGRADING
1 parent 7e46992 commit 127652f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: UPGRADING

+11
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ PHP 8.4 UPGRADE NOTES
5959
OutOfBoundsException instead of RuntimeException. As OutOfBoundsException
6060
is a child class of RuntimeException, code that uses RuntimeException
6161
continues to function.
62+
. ArrayObject now follows property write restrictions.
63+
This means, writing a dynamic property now emits a deprecation warning,
64+
it is not possible to assign a value of an incorrect type to a typed
65+
property, nor assigning to a property name which contains null bytes.
66+
ArrayObject continues to bypass any __set() handler and continues to
67+
allow assigning to inaccessible property names (e.g. integer as name).
68+
. Calling ArrayObject::offsetSet() with an offset of type null will now
69+
set an offset instead of appending.
70+
. Instances of classes that extend ArrayObject now call append($value)
71+
instead of offsetSet(null, $value) when using the append operator
72+
e.g. $object[] = $value;
6273

6374
- Standard:
6475
. round() now validates the value of the $mode parameter and throws a ValueError

0 commit comments

Comments
 (0)