Skip to content

Commit d26dcc5

Browse files
committed
Fixed HHVM build
1 parent bbf86fe commit d26dcc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Phpfastcache/Drivers/Couchdb/Driver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace Phpfastcache\Drivers\Couchdb;
1717

1818
use Doctrine\CouchDB\{
19-
CouchDBClient as CouchdbClient, CouchDBException
19+
CouchDBClient, CouchDBException
2020
};
2121
use Phpfastcache\Core\Pool\{
2222
DriverBaseTrait, ExtendedCacheItemPoolInterface
@@ -45,7 +45,7 @@ class Driver implements ExtendedCacheItemPoolInterface
4545
*/
4646
public function driverCheck(): bool
4747
{
48-
return \class_exists('Doctrine\CouchDB\CouchDBClient');
48+
return \class_exists(CouchDBClient::class);
4949
}
5050

5151
/**
@@ -54,7 +54,7 @@ public function driverCheck(): bool
5454
*/
5555
protected function driverConnect(): bool
5656
{
57-
if ($this->instance instanceof CouchdbClient) {
57+
if ($this->instance instanceof CouchDBClient) {
5858
throw new PhpfastcacheLogicException('Already connected to Couchdb server');
5959
}
6060

0 commit comments

Comments
 (0)