From e344fb811f73ea5caf44110129359f47b1cd9e6f Mon Sep 17 00:00:00 2001 From: michalsn Date: Mon, 23 Dec 2024 12:10:21 +0100 Subject: [PATCH] fix rector --- system/Database/SQLSRV/PreparedQuery.php | 2 ++ tests/system/Database/Live/PreparedQueryTest.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/system/Database/SQLSRV/PreparedQuery.php b/system/Database/SQLSRV/PreparedQuery.php index 3013e31c185b..5e9c28913ad2 100644 --- a/system/Database/SQLSRV/PreparedQuery.php +++ b/system/Database/SQLSRV/PreparedQuery.php @@ -120,6 +120,8 @@ protected function _close(): bool /** * Handle parameters. + * + * @param array $options */ protected function parameterize(string $queryString, array $options): array { diff --git a/tests/system/Database/Live/PreparedQueryTest.php b/tests/system/Database/Live/PreparedQueryTest.php index d2205f06d3a5..5513b2ee6bd2 100644 --- a/tests/system/Database/Live/PreparedQueryTest.php +++ b/tests/system/Database/Live/PreparedQueryTest.php @@ -284,7 +284,7 @@ public function testInsertBinaryData(): void $fileContent = file_get_contents(TESTPATH . '_support/Images/EXIFsamples/landscape_0.jpg'); $this->assertTrue($this->query->execute($fileContent)); - $id = $this->db->insertId(); + $id = $this->db->insertID(); $builder = $this->db->table('type_test'); if ($this->db->DBDriver === 'Postgre') {