Running phpunit with php8.2 gives a different order of the array.
No idea what can cause that.
1) ApiResultTest::testTransformations with data set #8 ('Types: Normal transform', array(array('a', 'b', 'c'), array('a', 'b', 'c'), array('a', 'b', 'c'), array('a', 'b', 'c', 'array'), array('a', 'b', 'c', 'BCarray'), array('a', 'b', 'c', 'BCassoc'), array('a', 'b', 'c', 'assoc'), array('a', 'b', array('c'), 'kvp'), array('a', 'b', 'BCkvp', 'key'), array('a', array('b'), array('d'), 'kvp', true), array(1), array(1, 'assoc'), 1, array('_dummy')), array(array()), array(array('b', 'c', 'a', 'array'), array('a', 'b', 'c', 'assoc'), array('a', 'b', 'c', 'assoc'), array('a', 'c', 'b', 'array'), array('a', 'c', 'b', 'array'), array('a', 'b', 'c', 'assoc'), array('a', 'b', 'c', 'assoc'), array('a', 'b', array('c', 'array'), 'assoc'), array('a', 'b', 'assoc', 'key'), array('a', array('b', 'array'), array('d', 'assoc'), 'assoc', true), array(1, 'array'), array(1, 'assoc'), 1, array('_dummy'), 'assoc')) Types: Normal transform Failed asserting that two arrays are equal. --- Expected +++ Actual @@ @@ 'defaultAssoc' => Array (...) 'defaultAssoc2' => Array (...) 'array' => Array ( - 0 => 'a' - 1 => 'c' - 2 => 'b' + 0 => 'c' + 1 => 'b' + 2 => 'a' '_type' => 'array' ) 'BCarray' => Array ( - 0 => 'a' - 1 => 'c' - 2 => 'b' + 0 => 'c' + 1 => 'b' + 2 => 'a' '_type' => 'array' ) 'BCassoc' => Array (...) /workspace/src/tests/phpunit/includes/api/ApiResultTest.php:712