diff --git a/_config.php b/_config.php deleted file mode 100644 index 936bd82..0000000 --- a/_config.php +++ /dev/null @@ -1,5 +0,0 @@ -transactionNesting; } - public function transactionEnd($chain = false) + public function transactionEnd(): bool|null { // Fail if transaction isn't available if (!$this->transactionDepth()) { @@ -556,10 +556,6 @@ class SQLite3Database extends Database $this->resetTransactionNesting(); } - if ($chain) { - $this->transactionStart(); - } - return true; } diff --git a/code/SQLite3Query.php b/code/SQLite3Query.php index 2d77d31..ac36d83 100644 --- a/code/SQLite3Query.php +++ b/code/SQLite3Query.php @@ -72,7 +72,8 @@ class SQLite3Query extends Query return $c; } - public function nextRecord() + #[\ReturnTypeWillChange] + public function getIterator() { if ($data = $this->handle->fetchArray(SQLITE3_ASSOC)) { return $data; diff --git a/composer.json b/composer.json index 45c9d57..614578b 100644 --- a/composer.json +++ b/composer.json @@ -14,8 +14,8 @@ } ], "require": { - "silverstripe/framework": "~4.0", - "silverstripe/vendor-plugin": "^1.0" + "silverstripe/framework": "^5", + "silverstripe/vendor-plugin": "^2" }, "require-dev": { "squizlabs/php_codesniffer": "^3"