From b5eb6752aaff96bf870109b8a261df96ecd3c748 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 6 Oct 2021 16:58:26 +0300 Subject: [PATCH] Fix compatibility with PHP 8.1 (PDO SQLite type casting) (#81) --- src/Driver/SQLite/Schema/SQLiteForeignKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Driver/SQLite/Schema/SQLiteForeignKey.php b/src/Driver/SQLite/Schema/SQLiteForeignKey.php index cf788f1c..14aad89c 100644 --- a/src/Driver/SQLite/Schema/SQLiteForeignKey.php +++ b/src/Driver/SQLite/Schema/SQLiteForeignKey.php @@ -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'];