Skip to content

Commit 81e000e

Browse files
committed
Improve GH-25021 test, use non-deprecated method
1 parent 115117f commit 81e000e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎ext/pdo_sqlite/tests/gh25021-udf.phpt‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ pdo_sqlite
55
--FILE--
66
<?php
77

8-
$conn = new PDO('sqlite::memory:');
8+
$conn = new Pdo\Sqlite('sqlite::memory:');
99

10-
$conn->sqliteCreateFunction('my_udf_pass_int', static fn(int $v): int => $v);
10+
$conn->createFunction('my_udf_pass_int', static fn(int $v): int => $v);
1111

1212
foreach ([
1313
10,
@@ -23,7 +23,6 @@ foreach ([
2323
}
2424
?>
2525
--EXPECTF--
26-
Deprecated: Method PDO::sqliteCreateFunction() is deprecated since 8.5, use Pdo\Sqlite::createFunction() instead in %s on line %d
2726
bool(true)
2827
bool(true)
2928
bool(true)

0 commit comments

Comments
 (0)