mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 17:52:02 -04:00
fix(db)!: Deprecate getDatabasePlatform which leaks 3rdparty
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
e8ef23d052
commit
df7d088653
2 changed files with 2 additions and 0 deletions
|
|
@ -178,6 +178,7 @@ class ConnectionAdapter implements IDBConnection {
|
|||
|
||||
/**
|
||||
* @todo we are leaking a 3rdparty type here
|
||||
* @deprecated 30.0.0 Use {@see getDatabaseProvider()} instead
|
||||
*/
|
||||
public function getDatabasePlatform(): AbstractPlatform {
|
||||
return $this->inner->getDatabasePlatform();
|
||||
|
|
|
|||
|
|
@ -278,6 +278,7 @@ interface IDBConnection {
|
|||
*
|
||||
* @return \Doctrine\DBAL\Platforms\AbstractPlatform The database platform.
|
||||
* @since 8.0.0
|
||||
* @deprecated 30.0.0 Use {@see getDatabaseProvider()} instead
|
||||
*/
|
||||
public function getDatabasePlatform();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue