Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Link1515 committed Mar 25, 2024
1 parent e465f2d commit 3c02a7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DB.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ private function __construct()
* Connect to db and set it to current PDO
*
* @param string $id
* @param string $drive
* @param string $driver
* @param string $host
* @param string $database
* @param string $user
* @param string $passwd
*/
public static function connect($id, $drive, $host, $database, $user, $passwd)
public static function connect($id, $driver, $host, $database, $user, $passwd)
{
if (isset (self::$pdoList[$id])) {
throw new \RuntimeException('The id "' . $id . '" is already in use.');
Expand All @@ -44,7 +44,7 @@ public static function connect($id, $drive, $host, $database, $user, $passwd)
];

$pdo = new PDO(
$drive . ':host=' . $host . ';dbname=' . $database,
$driver . ':host=' . $host . ';dbname=' . $database,
$user,
$passwd,
$defaultOptions
Expand Down

0 comments on commit 3c02a7a

Please sign in to comment.