From 81e000e6f276d02a45afcaaad92ec6db1ee3fb41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sat, 31 Oct 2026 17:52:42 +0100 Subject: [PATCH] Improve GH-25021 test, use non-deprecated method --- ext/pdo_sqlite/tests/gh25021-udf.phpt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/pdo_sqlite/tests/gh25021-udf.phpt b/ext/pdo_sqlite/tests/gh25021-udf.phpt index ab7231c953b8..22858620b8ea 100644 --- a/ext/pdo_sqlite/tests/gh25021-udf.phpt +++ b/ext/pdo_sqlite/tests/gh25021-udf.phpt @@ -5,9 +5,9 @@ pdo_sqlite --FILE-- sqliteCreateFunction('my_udf_pass_int', static fn(int $v): int => $v); +$conn->createFunction('my_udf_pass_int', static fn(int $v): int => $v); foreach ([ 10, @@ -23,7 +23,6 @@ foreach ([ } ?> --EXPECTF-- -Deprecated: Method PDO::sqliteCreateFunction() is deprecated since 8.5, use Pdo\Sqlite::createFunction() instead in %s on line %d bool(true) bool(true) bool(true)