summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2025-11-22 00:51:39 +0100
committerDamien Regad <dregad@mantisbt.org>2025-11-22 00:51:39 +0100
commitb39914258bef572398673196332818b5ea2c8f90 (patch)
tree78d20db16cc71f3f4b584381886d9bb64465a857
parent99390853e507056351f1b4dd38f35cd700179c30 (diff)
downloadadodb-b39914258bef572398673196332818b5ea2c8f90.tar.gz
adodb-b39914258bef572398673196332818b5ea2c8f90.tar.bz2
adodb-b39914258bef572398673196332818b5ea2c8f90.zip
PHP 7.0 compatible syntax
Trailing comma in function calls is only available since PHP 7.3 Named arguments are only allowed since PHP 8.0
-rw-r--r--tests/test-autoexecute-update.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-autoexecute-update.php b/tests/test-autoexecute-update.php
index 4ac8b619..b0274ec3 100644
--- a/tests/test-autoexecute-update.php
+++ b/tests/test-autoexecute-update.php
@@ -12,11 +12,11 @@ $db->Execute("INSERT INTO users VALUES (2, 'Jane', 1981)");
$new_value = 2000;
$db->autoExecute(
- table: "users",
- fields_values: ["year_of_birth" => $new_value],
- mode: "UPDATE",
- where: "id = 2",
- forceUpdate: false,
+ "users",
+ ["year_of_birth" => $new_value],
+ "UPDATE",
+ "id = 2",
+ false
);
$updated_value = $db->GetOne("SELECT year_of_birth FROM users WHERE id = 2");