Skip to content

Commit 286ecf1

Browse files
committed
fixes for PHP 7.4
1 parent da87ef4 commit 286ecf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Database/Drivers/SqliteDriver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function getColumns(string $table): array
147147
'size' => isset($type[1]) ? (int) $type[1] : null,
148148
'nullable' => $row['notnull'] == '0',
149149
'default' => $row['dflt_value'],
150-
'autoincrement' => (bool) preg_match($pattern, (string) $meta['sql']),
150+
'autoincrement' => $meta && preg_match($pattern, (string) $meta['sql']),
151151
'primary' => $row['pk'] > 0,
152152
'vendor' => (array) $row,
153153
];

0 commit comments

Comments
 (0)