Skip to content

Commit 9f085f8

Browse files
committed
Fix CS violations
1 parent 04b89f5 commit 9f085f8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

lib/Doctrine/ORM/Query/Exec/FinalizedSelectExecutor.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use Doctrine\DBAL\Connection;
88
use Doctrine\DBAL\Result;
9+
use Doctrine\DBAL\Types\Type;
910

1011
/**
1112
* SQL executor for a given, final, single SELECT SQL query
@@ -19,6 +20,10 @@ public function __construct(string $sql)
1920
$this->sqlStatements = $sql;
2021
}
2122

23+
/**
24+
* @param list<mixed>|array<string, mixed> $params
25+
* @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
26+
*/
2227
public function execute(Connection $conn, array $params, array $types): Result
2328
{
2429
return $conn->executeQuery($this->getSqlStatements(), $params, $types, $this->queryCacheProfile);

tests/Doctrine/Tests/ORM/Functional/Ticket/GH11112Test.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ public function testSimpleQueryHasLimitAndOffsetApplied(): void
2626

2727
$query->setMaxResults(10);
2828
$query->setFirstResult(20);
29-
$sql10_20 = $query->getSQL();
29+
$sqlMax10First20 = $query->getSQL();
3030

3131
$query->setMaxResults(30);
3232
$query->setFirstResult(40);
33-
$sql30_40 = $query->getSQL();
33+
$sqlMax30First40 = $query->getSQL();
3434

3535
// The SQL is platform specific and may even be something with outer SELECTS being added. So,
3636
// derive the expected value at runtime through the platform.
37-
self::assertSame($platform->modifyLimitQuery($originalSql, 10, 20), $sql10_20);
38-
self::assertSame($platform->modifyLimitQuery($originalSql, 30, 40), $sql30_40);
37+
self::assertSame($platform->modifyLimitQuery($originalSql, 10, 20), $sqlMax10First20);
38+
self::assertSame($platform->modifyLimitQuery($originalSql, 30, 40), $sqlMax30First40);
3939

4040
$cacheEntries = self::$queryCache->getValues();
4141
self::assertCount(1, $cacheEntries);

0 commit comments

Comments
 (0)