From 447430b7bbc9765f1847a11e4436191078806b03 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Tue, 14 Jul 2026 20:12:03 +0000 Subject: [PATCH] - Fixed PDO return value of connect() in mssql --- src/Adapter/MsSQL.php | 2 +- src/Entity/Sqlite/Table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Adapter/MsSQL.php b/src/Adapter/MsSQL.php index b04fc13..d927503 100644 --- a/src/Adapter/MsSQL.php +++ b/src/Adapter/MsSQL.php @@ -83,7 +83,7 @@ class MsSQL implements AdapterInterface, MigrateInterface, SqlAdapterInterface { } } - public function connect() : Pdo + public function connect() : \PDO { try { $pdo = new Pdo\Mssql($this->buildDataSourceName(), $this->username, $this->password); diff --git a/src/Entity/Sqlite/Table.php b/src/Entity/Sqlite/Table.php index 259a94a..400d913 100644 --- a/src/Entity/Sqlite/Table.php +++ b/src/Entity/Sqlite/Table.php @@ -9,7 +9,7 @@ use Ulmus\Repository; #[\Ulmus\Attribute\Obj\Table(name: "sqlite_master")] class Table extends Schema { - public static function repository(string $alias = Repository::DEFAULT_ALIAS, ConnectionAdapter $adapter = null): Repository + public static function repository(string $alias = Repository::DEFAULT_ALIAS, ?ConnectionAdapter $adapter = null): Repository { $repository = new class(static::class, $alias, $adapter) extends Repository\SqliteRepository {