Re: [PHP-DEV] Order of properties in (array) cast on PHP 8.1

2021-10-13 Thread Benjamin Morel
> > Yes, this change is expected and documented, see: > > https://www.php.net/manual/en/migration81.other-changes.php#migration81.other-changes.functions.core > Thanks for the pointer! And sorry for the noise. — Benjamin

Re: [PHP-DEV] Order of properties in (array) cast on PHP 8.1

2021-10-13 Thread G. P. B.
On Wed, 13 Oct 2021 at 22:45, Benjamin Morel wrote: > Hi internals, > > While running the test suite of one of my libs against PHP 8.1, I noticed > that the order in which properties are returned in an (array) cast has > changed. > > For example when casting an instance of this class to array: >

[PHP-DEV] Order of properties in (array) cast on PHP 8.1

2021-10-13 Thread Benjamin Morel
Hi internals, While running the test suite of one of my libs against PHP 8.1, I noticed that the order in which properties are returned in an (array) cast has changed. For example when casting an instance of this class to array: class A { private $x = 'x'; } class B extends A { public $