Skip to content

Commit

Permalink
Fixed quality & updated composer metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolim4 committed Dec 23, 2023
1 parent 4493cdf commit 035b84a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "phpfastcache/phpfastcache",
"type" : "library",
"description": "PHP Abstract Cache Class - Reduce your database call using cache system. Phpfastcache handles a lot of drivers such as Apc(u), Cassandra, CouchBase, Couchdb, Mongodb, Files, (P)redis, Leveldb, Memcache(d), Ssdb, Sqlite, Wincache, Xcache, Zend Data Cache.",
"keywords": ["abstract", "cache","caching","php cache","mysql cache","apc","apcu","arangodb","dynamodb","memcache","memcached","wincache","files cache","pdo cache","cache class","redis","predis","cookie", "mongodb", "cassandra", "couchdb", "couchbase", "LevelDb", "Solr", "Ssdb", "Wincache", "xcache","zend","zend disk cache","zend memory cache","zend data cache","zend server"],
"description": "PHP Abstract Cache Class - Reduce your database call using cache system. Phpfastcache handles a lot of drivers such as Apc(u), Cassandra, CouchBase, Couchdb, Dynamodb, Firestore, Mongodb, Files, (P)redis, Leveldb, Memcache(d), Ssdb, Sqlite, Wincache, Xcache, Zend Data Cache.",
"keywords": ["abstract", "cache","caching","php cache","mysql cache","apc","apcu","arangodb","dynamodb","firestore","memcache","memcached","wincache","files cache","pdo cache","cache class","redis","redis cluster","predis","cookie", "mongodb", "cassandra", "couchdb", "couchbase", "LevelDb", "Solr", "Ssdb", "Wincache", "xcache","zend","zend disk cache","zend memory cache","zend data cache","zend server"],
"homepage": "https://www.phpfastcache.com",
"license": "MIT",
"minimum-stability": "stable",
Expand Down
4 changes: 2 additions & 2 deletions lib/Phpfastcache/Drivers/Couchbasev3/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,11 @@ protected function driverRead(ExtendedCacheItemInterface $item): ?array

/**
* @param ExtendedCacheItemInterface $item
* @return ?array<string, mixed>
* @return array<array<string, mixed>>
*/
protected function driverReadMultiple(ExtendedCacheItemInterface ...$items): array
{
try {
$keys = $this->getKeys($items, true);
$results = [];
/**
* CouchbaseBucket::get() returns a GetResult interface
Expand Down Expand Up @@ -197,6 +196,7 @@ protected function driverClear(): bool
{
if (!$this->instance->buckets()->getBucket($this->getConfig()->getBucketName())->flushEnabled()) {
$this->instance->buckets()->getBucket($this->getConfig()->getBucketName())->enableFlush(true);
/** @phpstan-ignore-next-line */
if (!$this->instance->buckets()->getBucket($this->getConfig()->getBucketName())->flushEnabled()) {
throw new PhpfastcacheUnsupportedMethodException(
'Flushing operation is not enabled on your Bucket. See https://docs.couchbase.com/server/current/manage/manage-buckets/flush-bucket.html'
Expand Down

0 comments on commit 035b84a

Please sign in to comment.