Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/system/Database/Live/OCI8/LastInsertIDTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function testGetInsertIDWithHasCommentQuery(): void

public function testGetInsertIDWithPreparedQuery(): void
{
$query = $this->db->prepare(static function ($db) {
$query = $this->db->prepare(static function ($db): Query {
$sql = 'INSERT INTO "db_job" ("name", "description") VALUES (?, ?)';

return (new Query($db))->setQuery($sql);
Expand Down
8 changes: 4 additions & 4 deletions tests/system/Database/Live/PreparedQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function testPrepareReturnsPreparedQuery(): void

public function testPrepareReturnsManualPreparedQuery(): void
{
$this->query = $this->db->prepare(static function ($db) {
$this->query = $this->db->prepare(static function ($db): Query {
$sql = "INSERT INTO {$db->protectIdentifiers($db->DBPrefix . 'user')} ("
. $db->protectIdentifiers('name') . ', '
. $db->protectIdentifiers('email') . ', '
Expand Down Expand Up @@ -127,7 +127,7 @@ public function testExecuteRunsQueryAndReturnsTrue(): void

public function testExecuteRunsQueryManualAndReturnsTrue(): void
{
$this->query = $this->db->prepare(static function ($db) {
$this->query = $this->db->prepare(static function ($db): Query {
$sql = "INSERT INTO {$db->protectIdentifiers($db->DBPrefix . 'user')} ("
. $db->protectIdentifiers('name') . ', '
. $db->protectIdentifiers('email') . ', '
Expand Down Expand Up @@ -164,7 +164,7 @@ public function testExecuteRunsQueryAndReturnsFalse(): void

public function testExecuteRunsQueryManualAndReturnsFalse(): void
{
$this->query = $this->db->prepare(static function ($db) {
$this->query = $this->db->prepare(static function ($db): Query {
$sql = "INSERT INTO {$db->protectIdentifiers($db->DBPrefix . 'without_auto_increment')} ("
. $db->protectIdentifiers('key') . ', '
. $db->protectIdentifiers('value')
Expand Down Expand Up @@ -200,7 +200,7 @@ public function testExecuteSelectQueryAndCheckTypeAndResult(): void

public function testExecuteSelectQueryManualAndCheckTypeAndResult(): void
{
$this->query = $this->db->prepare(static function ($db) {
$this->query = $this->db->prepare(static function ($db): Query {
$sql = 'SELECT '
. $db->protectIdentifiers('name') . ', '
. $db->protectIdentifiers('email') . ', '
Expand Down
Loading