Skip to content

Commit 5f83739

Browse files
committed
[BUGFIX] Fixed nullable return-type for Connection::getStoredConnection (issue: #117).
1 parent 20985a4 commit 5f83739

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Pecee/Pixie/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ public function __construct($adapter, array $adapterConfig)
6666
// Create event dependency
6767
$this->eventHandler = new EventHandler();
6868

69-
if (!static::$storedConnection) {
69+
if (static::$storedConnection === null) {
7070
static::$storedConnection = $this;
7171
}
7272
}
7373

7474
/**
7575
* @return Connection
7676
*/
77-
public static function getStoredConnection(): self
77+
public static function getStoredConnection(): ?self
7878
{
7979
return static::$storedConnection;
8080
}

0 commit comments

Comments
 (0)