pradosoft / prado

Prado - Component Framework for PHP
Other
187 stars 70 forks source link

TPriorityCollectionTrait: ArgumentCountError: array_replace() does not accept unknown named parameters #956

Closed belisoful closed 1 year ago

belisoful commented 1 year ago

This exception is occurring because the array_replace and array_merge is not stripping the priority key. This worked in php 7.4 but not in PHP 8.

This should be fixed before 4.2.3 is released. I have a fix. I just need to test it.

ArgumentCountError: array_replace() does not accept unknown named parameters

/Users/user/Code/2022prado/protected/vendor/pradosoft/prado/framework/Collections/TPriorityCollectionTrait.php:200
/Users/user/Code/2022prado/protected/vendor/pradosoft/prado/framework/Collections/TPriorityMap.php:327
/Users/user/Code/2022prado/protected/vendor/pradosoft/prado/framework/IO/Image/Meta/TIPTC.php:775
/Users/user/Code/2022prado/protected/vendor/pradosoft/prado/framework/IO/Image/Meta/TIPTC.php:420
/Users/user/Code/2022prado/protected/vendor/pradosoft/prado/tests/unit/IO/Image/Meta/TIPTCTest.php:184
/Users/user/Code/2022prado/protected/vendor/pradosoft/prado/vendor/bin/phpunit:123