Skip to content

Commit caba2f6

Browse files
committed
Trying to access array offset on value of type bool.
1 parent 5d63378 commit caba2f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SqlitePdoDataLayer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function executeRows(string $query, ?array $parameters = null): array
209209
$types = [];
210210
for ($i = 0; $i<$statement->columnCount(); $i++)
211211
{
212-
$types[$i] = $statement->getColumnMeta($i)['native_type'];
212+
$types[$i] = $statement->getColumnMeta($i)['native_type'] ?? null;
213213
}
214214

215215
$rows = $statement->fetchAll(\PDO::FETCH_ASSOC);

0 commit comments

Comments
 (0)