Skip to content

Commit

Permalink
simple fix if auth is null
Browse files Browse the repository at this point in the history
  • Loading branch information
transistive committed Jan 8, 2024
1 parent 56c13b7 commit 98745b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private function makeTransactionConfig(): TransactionConfiguration
private function createAuth(array|null $auth, string $dsn): AuthenticateInterface
{
if (null === $auth) {
return Authenticate::disabled();
return Authenticate::fromUrl(Uri::create($dsn));
}

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

0 comments on commit 98745b6

Please sign in to comment.