Skip to content

Commit

Permalink
Fix issue for PdoSource in PHP 8 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Nov 17, 2024
1 parent b17e899 commit 233951a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Source/PdoSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ public function getItems()

foreach ($columns as $column)
{
$row[] = $item[$column->getName()];
// PHP 8.0 and above parses numbers as native types ---
// as opposed to pure strings prior to this version ---
$row[] = (string) $item[$column->getName()];
// ----------------------------------------------------
}

$result[] = $row;
Expand Down

0 comments on commit 233951a

Please sign in to comment.