Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Fix compatibility with PHP 8.1 (PDO SQLite type casting) (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
roquie authored Oct 6, 2021
1 parent 497c892 commit b5eb675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Driver/SQLite/Schema/SQLiteForeignKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function compare(AbstractForeignKey $initial): bool
*/
public static function createInstance(string $table, string $tablePrefix, array $schema): self
{
$reference = new self($table, $tablePrefix, $schema['id']);
$reference = new self($table, $tablePrefix, (string) $schema['id']);

$reference->columns = $schema['from'];
$reference->foreignTable = $schema['table'];
Expand Down

0 comments on commit b5eb675

Please sign in to comment.