Skip to content

Commit c7e784f

Browse files
authored
Merge pull request #9896 from michalsn/fix/rector
fix: rector
2 parents c38a267 + 84bd795 commit c7e784f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/system/Database/Live/OCI8/LastInsertIDTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function testGetInsertIDWithHasCommentQuery(): void
7979

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

8585
return (new Query($db))->setQuery($sql);

tests/system/Database/Live/PreparedQueryTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testPrepareReturnsPreparedQuery(): void
8383

8484
public function testPrepareReturnsManualPreparedQuery(): void
8585
{
86-
$this->query = $this->db->prepare(static function ($db) {
86+
$this->query = $this->db->prepare(static function ($db): Query {
8787
$sql = "INSERT INTO {$db->protectIdentifiers($db->DBPrefix . 'user')} ("
8888
. $db->protectIdentifiers('name') . ', '
8989
. $db->protectIdentifiers('email') . ', '
@@ -127,7 +127,7 @@ public function testExecuteRunsQueryAndReturnsTrue(): void
127127

128128
public function testExecuteRunsQueryManualAndReturnsTrue(): void
129129
{
130-
$this->query = $this->db->prepare(static function ($db) {
130+
$this->query = $this->db->prepare(static function ($db): Query {
131131
$sql = "INSERT INTO {$db->protectIdentifiers($db->DBPrefix . 'user')} ("
132132
. $db->protectIdentifiers('name') . ', '
133133
. $db->protectIdentifiers('email') . ', '
@@ -164,7 +164,7 @@ public function testExecuteRunsQueryAndReturnsFalse(): void
164164

165165
public function testExecuteRunsQueryManualAndReturnsFalse(): void
166166
{
167-
$this->query = $this->db->prepare(static function ($db) {
167+
$this->query = $this->db->prepare(static function ($db): Query {
168168
$sql = "INSERT INTO {$db->protectIdentifiers($db->DBPrefix . 'without_auto_increment')} ("
169169
. $db->protectIdentifiers('key') . ', '
170170
. $db->protectIdentifiers('value')
@@ -200,7 +200,7 @@ public function testExecuteSelectQueryAndCheckTypeAndResult(): void
200200

201201
public function testExecuteSelectQueryManualAndCheckTypeAndResult(): void
202202
{
203-
$this->query = $this->db->prepare(static function ($db) {
203+
$this->query = $this->db->prepare(static function ($db): Query {
204204
$sql = 'SELECT '
205205
. $db->protectIdentifiers('name') . ', '
206206
. $db->protectIdentifiers('email') . ', '

0 commit comments

Comments
 (0)