note 125874 added to arrayobject.exchangearray

From: Date: Tue, 02 Mar 2021 23:02:12 +0000
Subject: note 125874 added to arrayobject.exchangearray
Groups: php.notes 
Request: Send a blank email to php-notes+get-219131@lists.php.net to get a copy of this message
Looks like PHP8 brings undocumented change to this method signature. Example: <?php interface intA { public function exchangeArray($param); } class classB extends ArrayObject implements intA {} ?> PHP 7.4.13: no errors PHP 8.0.0: Fatal error: Declaration of ArrayObject::exchangeArray(object|array $array) must be compatible with intA::exchangeArray($param) ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.247 (proxied: 158.181.79.78) ---- Manual Page -- http://php.net/manual/en/arrayobject.exchangearray.php Edit -- https://master.php.net/note/edit/125874 Del: integrated -- https://master.php.net/note/delete/125874/integrated Del: useless -- https://master.php.net/note/delete/125874/useless Del: bad code -- https://master.php.net/note/delete/125874/bad+code Del: spam -- https://master.php.net/note/delete/125874/spam Del: non-english -- https://master.php.net/note/delete/125874/non-english Del: in docs -- https://master.php.net/note/delete/125874/in+docs Del: other reasons-- https://master.php.net/note/delete/125874 Reject -- https://master.php.net/note/reject/125874 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#219131) next »