Fatal error: Uncaught Error: The SQLite3Result object has not been correctly initialised or is already closed
Full stack
PHP Fatal error: Uncaught Error: The SQLite3Result object has not been correctly initialised or is already closed in ...\vendor\silverstripe\sqlite3\code\SQLite3Query.php:43
Stack trace:
Module version(s) affected
3
Description
I get this very odd error in my unit tests
Fatal error: Uncaught Error: The SQLite3Result object has not been correctly initialised or is already closed
Full stack
PHP Fatal error: Uncaught Error: The SQLite3Result object has not been correctly initialised or is already closed in ...\vendor\silverstripe\sqlite3\code\SQLite3Query.php:43 Stack trace:
0 ...\vendor\silverstripe\sqlite3\code\SQLite3Query.php(43): SQLite3Result->finalize()
1 [internal function]: SilverStripe\SQLite\SQLite3Query->__destruct()
2 {main}
thrown in...\vendor\silverstripe\sqlite3\code\SQLite3Query.php on line 43
This seem due to ->finalize being called but the db is already closed
How to reproduce
I didn't manage to get an easily reproducible example, but i can assure the issue is real :)
Possible Solution
No response
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)