Recently I have faced an issue in the project while upgrading PHP version 7.* to 8.* and also upgrade composer version 1 from composer 2.
When I checked the pages in the latest version of PHP that used the array_merge(…$this->items) function in PHP 7.4, I got an error like given,
ArgumentCountError: array_merge() does not accept unknown named parameters in Items.php class.