From 3ab281d21f11be0a7342a9b6c80909b325c8cd55 Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Mon, 15 Jan 2024 14:36:27 +0700 Subject: [PATCH] [pdo_sqlite] Update PdoSqlite::createAggregate and createFunction param names to match previous names Updates the `PdoSqlite::createAggregate` method parameter names to match the existing `PDO::sqliteCreateFunction` (1) param names. - [1]: https://www.php.net/manual/en/pdo.sqlitecreatefunction.php --- ext/pdo_sqlite/pdo_sqlite.stub.php | 8 ++++---- ext/pdo_sqlite/pdo_sqlite_arginfo.h | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ext/pdo_sqlite/pdo_sqlite.stub.php b/ext/pdo_sqlite/pdo_sqlite.stub.php index 5e46b393cca37..46521b630f100 100644 --- a/ext/pdo_sqlite/pdo_sqlite.stub.php +++ b/ext/pdo_sqlite/pdo_sqlite.stub.php @@ -33,10 +33,10 @@ class PdoSqlite extends PDO // Registers an aggregating User Defined Function for use in SQL statements public function createAggregate( - string $name, - callable $step, - callable $finalize, - int $numArgs = -1 + string $function_name, + callable $step_func, + callable $finalize_func, + int $num_args = -1 ): bool {} // Registers a User Defined Function for use as a collating function in SQL statements diff --git a/ext/pdo_sqlite/pdo_sqlite_arginfo.h b/ext/pdo_sqlite/pdo_sqlite_arginfo.h index eb45b8041e01d..a8563f73f6415 100644 --- a/ext/pdo_sqlite/pdo_sqlite_arginfo.h +++ b/ext/pdo_sqlite/pdo_sqlite_arginfo.h @@ -1,11 +1,11 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 167d0e30af99bd31c46ea1649c661b6aa38eaccb */ + * Stub hash: 8229994166dfff0c6805c8efac131910fc0b05e1 */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_PdoSqlite_createAggregate, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, step, IS_CALLABLE, 0) - ZEND_ARG_TYPE_INFO(0, finalize, IS_CALLABLE, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, numArgs, IS_LONG, 0, "-1") + ZEND_ARG_TYPE_INFO(0, function_name, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, step_func, IS_CALLABLE, 0) + ZEND_ARG_TYPE_INFO(0, finalize_func, IS_CALLABLE, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, num_args, IS_LONG, 0, "-1") ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_PdoSqlite_createCollation, 0, 2, _IS_BOOL, 0)