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 {