for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Db\Pgsql;
use Yiisoft\Db\Connection\AbstractDsn;
/**
* Implement a Data Source Name (DSN) for a PostgreSQL Server.
*
* @link https://www.php.net/manual/en/ref.pdo-pgsql.connection.php
*/
final class Dsn extends AbstractDsn
{
* @psalm-param string[] $options
public function __construct(
string $driver,
string $host,
string|null $databaseName = 'postgres',
string $port = '5432',
array $options = []
) {
if (empty($databaseName)) {
$databaseName = 'postgres';
}
parent::__construct($driver, $host, $databaseName, $port, $options);