Skip to content

Commit c95b697

Browse files
committed
Fixing static calls
1 parent c362ad6 commit c95b697

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Factory/MongoDBFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class MongoDBFactory extends AbstractDsnAdapterFactory
3030
*/
3131
public function getAdapter(array $config)
3232
{
33-
$dsn = static::getDsn();
33+
$dsn = $this->getDsn();
3434
if (empty($dsn)) {
3535
$manager = new Manager(sprintf('mongodb://%s:%s', $config['host'], $config['port']));
3636
} else {

src/Factory/PredisFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PredisFactory extends AbstractDsnAdapterFactory
3030
*/
3131
public function getAdapter(array $config)
3232
{
33-
$dsn = static::getDsn();
33+
$dsn = $this->getDsn();
3434
if (empty($dsn)) {
3535
$client = new Client(
3636
[

src/Factory/RedisFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getAdapter(array $config)
3131
{
3232
$client = new \Redis();
3333

34-
$dsn = static::getDsn();
34+
$dsn = $this->getDsn();
3535
if (empty($dsn)) {
3636
$client->connect($config['host'], $config['port']);
3737
} else {

0 commit comments

Comments
 (0)