Cannot assign null to property Nette\Caching\Storages\SQLiteJournal::$pdo of type PDO when running tests · Issue #37 · contributte/codeception · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot assign null to property Nette\Caching\Storages\SQLiteJournal::$pdo of type PDO when running tests #37
after upgrading to the newest version of Nette caching library and running codeception tests I now get the following error: Cannot assign null to property Nette\Caching\Storages\SQLiteJournal::$pdo of type PDO right after the tests are finished.
This looks to be an issue with the latest Nette\Caching commit here which does no longer allow the $pdo property to be nullable.
Detailed error stacktrace:
I switched to a prior version without that commit (Nette\Caching v3.1.4) and the error no longer appears. Can we get this fixed please, so that we can use the newest Nette\Caching version?
Activity
her-ur commentedon Mar 13, 2023
It seems that should be enough to call
$journal->clean([Cache::All => true]);instead of setting null via reflection. What do you think?fix: universal Nette\Caching\Storages\Journal cleaning (contributte#37)
rattuscz commentedon Jul 20, 2023
👍
fix: universal Nette\Caching\Storages\Journal cleaning (#37)