diff --git a/appendices/migration84/incompatible.xml b/appendices/migration84/incompatible.xml index 44ccfe2b4334..03e8cc691a60 100644 --- a/appendices/migration84/incompatible.xml +++ b/appendices/migration84/incompatible.xml @@ -409,9 +409,9 @@ The "allowed_classes" option for unserialize now throws - TypeErrors and - ValueErrors if it is not an - array of class names. + TypeError and + ValueError if it is neither an + array of class names nor a boolean. diff --git a/reference/var/functions/unserialize.xml b/reference/var/functions/unserialize.xml index 7dfee0a6968a..7c75b6c20857 100644 --- a/reference/var/functions/unserialize.xml +++ b/reference/var/functions/unserialize.xml @@ -146,9 +146,9 @@ As of PHP 8.4.0, if the allowed_classes element of - options is not an array of class names, - unserialize throws TypeErrors - and ValueErrors. + options is neither a array of class names + nor a boolean, unserialize throws + TypeError and ValueError. @@ -167,9 +167,10 @@ 8.4.0 - Now throws TypeErrors and - ValueErrors if the allowed_classes - element of options is not an array of class names. + Now throws TypeError and + ValueError if the allowed_classes + element of options is neither a array of class names + nor a boolean.