Skip to content

Commit 8a85a14

Browse files
committed
Fixed possible type error on Couchdb
1 parent 2bb45b5 commit 8a85a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Phpfastcache/Drivers/Couchdb/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function getStats(): DriverStatistic
6666
$info = $this->instance->getDatabaseInfo();
6767

6868
return (new DriverStatistic())
69-
->setSize($info['sizes']['active'])
69+
->setSize($info['sizes']['active'] ?? 0)
7070
->setRawData($info)
7171
->setData(implode(', ', array_keys($this->itemInstances)))
7272
->setInfo('Couchdb version ' . $this->instance->getVersion() . "\n For more information see RawData.");

0 commit comments

Comments
 (0)