diff --git a/src/Catalog.php b/src/Catalog.php index efcb25e..dba0288 100644 --- a/src/Catalog.php +++ b/src/Catalog.php @@ -48,14 +48,15 @@ public function __construct( protected string $dbUser='root', protected string $dbPass='', protected ?array $dbOptions=null, - protected ?\PDO $pdo = null + protected ?\PDO $pdo=null ) { // Connect. try { - if($pdo !== null) { + if ($pdo !== null) { $this->connection = $pdo; return; } + // Corrected to use the updated parameter names. $this->connection = new \PDO( "mysql:host=$dbHost;port=$dbPort", @@ -79,6 +80,7 @@ public function __construct( } + /** * Create a new catalog *