Description: Fix PHP 8.5 compatibility regarding array_first() in test suite Under PHP 8.5, array_first(array $array) is a strictly typed native function. The unit test Framework_Bootstrap::test_array_first asserted that non-array arguments (false, string) return null, which now throws TypeError. Drop the non-array assertions matching upstream commit 060fc956724. Origin: backport, https://github.com/roundcube/roundcubemail/commit/060fc95672498993d37e57f74d146a087eb572e0 Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/roundcube/+bug/2169077 Bug: https://github.com/roundcube/roundcubemail/issues/9961 Author: Aleksander Machniak Applied-Upstream: 060fc95672498993d37e57f74d146a087eb572e0 Last-Update: 2026-10-10 --- a/tests/Framework/Bootstrap.php +++ b/tests/Framework/Bootstrap.php @@ -154,8 +154,6 @@ class Bootstrap extends TestCase function test_array_first() { $this->assertSame(null, array_first([])); - $this->assertSame(null, array_first(false)); - $this->assertSame(null, array_first('test')); $this->assertSame('test', array_first(['test'])); $input = ['test1', 'test2'];