Skip to content

Commit 92e687d

Browse files
foxycodedg
authored andcommitted
removed unnecessary casts
1 parent 002f24e commit 92e687d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Database/ResultSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function getTime(): float
129129
public function normalizeRow(array $row): array
130130
{
131131
if ($this->types === null) {
132-
$this->types = (array) $this->connection->getSupplementalDriver()->getColumnTypes($this->pdoStatement);
132+
$this->types = $this->connection->getSupplementalDriver()->getColumnTypes($this->pdoStatement);
133133
}
134134

135135
foreach ($this->types as $key => $type) {

src/Database/Table/Selection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ protected function execute(): void
552552
foreach ($result->getPdoStatement() as $key => $row) {
553553
$row = $this->createRow($result->normalizeRow($row));
554554
$primary = $row->getSignature(false);
555-
$usedPrimary = $usedPrimary && (string) $primary !== '';
555+
$usedPrimary = $usedPrimary && $primary !== '';
556556
$this->rows[$usedPrimary ? $primary : $key] = $row;
557557
}
558558
$this->data = $this->rows;

0 commit comments

Comments
 (0)