Doc #80822 [NEW]: signature of ArrayObject::exchangeArray($array) has changed

From: Date: Wed, 03 Mar 2021 00:20:04 +0000
Subject: Doc #80822 [NEW]: signature of ArrayObject::exchangeArray($array) has changed
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18611@lists.php.net to get a copy of this message
From: ievgen dot varava at spryker dot com Operating system: OS X PHP version: 8.0.2 Package: Documentation problem Bug Type: Documentation Problem Bug description:signature of ArrayObject::exchangeArray($array) has changed Description: ------------ --- From manual page: https://php.net/arrayobject.exchangearray --- Signature of ArrayObject::exchangeArray($array) has changed, but is not documented. Some code that worked in php7 might become incompatible with php8 Test script: --------------- <?php interface intA { public function exchangeArray($param); } class classB extends ArrayObject implements intA {} ?> Expected result: ---------------- no errors (works in php 7.4.13) Actual result: -------------- Fatal error: Declaration of ArrayObject::exchangeArray(object|array $array) must be compatible with intA::exchangeArray($param) -- Edit bug report at https://bugs.php.net/bug.php?id=80822&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80822&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80822&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80822&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80822&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80822&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80822&r=support Expected behavior: https://bugs.php.net/fix.php?id=80822&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80822&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80822&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80822&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80822&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80822&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80822&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80822&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80822&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80822&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80822&r=mysqlcfg

« previous php.doc.bugs (#18611) next »