Skip to content

Commit

Permalink
fix: patch up missing connection
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Jan 9, 2025
1 parent bb200bb commit bd7afbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Db/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function __construct(

/**
* Load db credentials, but defer connection until needed
*
*
* @param string|array $host Host Name or full config
* @param string $dbname Database name
* @param string $user Database username
Expand Down Expand Up @@ -376,7 +376,7 @@ public function bind(...$bindings): self
*/
public function execute()
{
if ($this->connection === null) {
if ($this->connection() === null) {
trigger_error('Initialise your database first with connect()');
}

Expand Down

0 comments on commit bd7afbc

Please sign in to comment.