From e46be6cee6ac453c9b461fb3b05af290c64982fc Mon Sep 17 00:00:00 2001 From: David Grudl Date: Thu, 26 Mar 2020 03:37:27 +0100 Subject: [PATCH] SqliteResult: workaround for PHP bug 79414 --- src/Dibi/Drivers/SqliteResult.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dibi/Drivers/SqliteResult.php b/src/Dibi/Drivers/SqliteResult.php index 3d28882a..4f31b90e 100644 --- a/src/Dibi/Drivers/SqliteResult.php +++ b/src/Dibi/Drivers/SqliteResult.php @@ -96,7 +96,7 @@ class SqliteResult implements Dibi\ResultDriver 'name' => $this->resultSet->columnName($i), 'table' => null, 'fullname' => $this->resultSet->columnName($i), - 'nativetype' => $types[$this->resultSet->columnType($i)], + 'nativetype' => $types[$this->resultSet->columnType($i)] ?? null, // buggy in PHP 7.4.4 & 7.3.16, bug 79414 ]; } return $columns;