Skip to content

Commit c8922ee

Browse files
committed
chore(design): better names
1 parent 4661b7b commit c8922ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Driver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function connect(array $params): ConnectionInterface
1616
{
1717
if (!isset(self::$pool)) {
1818
self::$pool = new ConnectionPool(
19-
fn(): Connection => $this->create($this->dsn($params)),
19+
fn(): Connection => $this->createConnection($this->dsn($params)),
2020
$params['poolSize'] ?? self::DEFAULT_POOL_SIZE,
2121
);
2222
}
@@ -29,7 +29,7 @@ public function connect(array $params): ConnectionInterface
2929
/**
3030
* @throws ConnectionException
3131
*/
32-
public function create(string $dsn): Connection
32+
public function createConnection(string $dsn): Connection
3333
{
3434
$pgsql = new PostgreSQL();
3535

0 commit comments

Comments
 (0)