Skip to content

Commit 98745b6

Browse files
committed
simple fix if auth is null
1 parent 56c13b7 commit 98745b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ClientFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private function makeTransactionConfig(): TransactionConfiguration
137137
private function createAuth(array|null $auth, string $dsn): AuthenticateInterface
138138
{
139139
if (null === $auth) {
140-
return Authenticate::disabled();
140+
return Authenticate::fromUrl(Uri::create($dsn));
141141
}
142142

143143
return match ($auth['type'] ?? null) {

0 commit comments

Comments
 (0)