Skip to content

Commit 9f8b220

Browse files
committed
Change to public
1 parent 2d5a378 commit 9f8b220

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/Database/Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1585,5 +1585,5 @@ abstract public function getSupportForNestedTransactions(): bool;
15851585
/**
15861586
* @return mixed
15871587
*/
1588-
abstract protected function getDriver(): mixed;
1588+
abstract public function getDriver(): mixed;
15891589
}

src/Database/Adapter/Mongo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ public function __construct(Client $client)
7878
}
7979

8080
/**
81-
* Returns the current PDO object
81+
* Returns the current Mongo client
8282
* @return mixed
8383
*/
84-
protected function getDriver(): mixed
84+
public function getDriver(): mixed
8585
{
8686
return $this->client;
8787
}

src/Database/Adapter/Pool.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,9 @@ public function delegate(string $method, array $args): mixed
7070
});
7171
}
7272

73-
protected function getDriver(): mixed
73+
public function getDriver(): mixed
7474
{
75-
$this->delegate(__FUNCTION__, \func_get_args());
76-
77-
return $this;
75+
return $this->delegate(__FUNCTION__, \func_get_args());
7876
}
7977

8078
public function before(string $event, string $name = '', ?callable $callback = null): static

src/Database/Adapter/SQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2190,7 +2190,7 @@ protected function getPDO(): mixed
21902190
* Returns the current PDO object
21912191
* @return mixed
21922192
*/
2193-
protected function getDriver(): mixed
2193+
public function getDriver(): mixed
21942194
{
21952195
return $this->pdo;
21962196
}

0 commit comments

Comments
 (0)