- Fixed PDO return value of connect() in mssql
This commit is contained in:
parent
00093b0398
commit
447430b7bb
@ -83,7 +83,7 @@ class MsSQL implements AdapterInterface, MigrateInterface, SqlAdapterInterface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function connect() : Pdo
|
public function connect() : \PDO
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$pdo = new Pdo\Mssql($this->buildDataSourceName(), $this->username, $this->password);
|
$pdo = new Pdo\Mssql($this->buildDataSourceName(), $this->username, $this->password);
|
||||||
|
|||||||
@ -9,7 +9,7 @@ use Ulmus\Repository;
|
|||||||
#[\Ulmus\Attribute\Obj\Table(name: "sqlite_master")]
|
#[\Ulmus\Attribute\Obj\Table(name: "sqlite_master")]
|
||||||
class Table extends Schema
|
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
|
$repository = new class(static::class, $alias, $adapter) extends Repository\SqliteRepository
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user