Package: roundcube Version: 1.6.19+dfsg-1 Severity: normal Tags: patch ftbfs User: [email protected] Usertags: origin-ubuntu stonking ubuntu-patch
Dear Maintainer, Under PHP 8.5, array_first(array $array) is a strictly typed native function. Framework_Bootstrap::test_array_first asserted that non-array arguments (false, string) return null, which now throws TypeError: TypeError: array_first(): Argument #1 ($array) must be of type array, false given This causes the package test suite to fail under PHP 8.5. Upstream resolved this in commit 060fc95672498993d37e57f74d146a087eb572e0 by dropping the non-array assertions from the test. Attached is a patch backporting the upstream fix. Thanks, Viktor Pashaiev
php8.5-array-first-compat.patch
Description: application/diff

