fix(db)!: Deprecate getDatabasePlatform which leaks 3rdparty

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2024-07-02 11:10:12 +02:00
parent e8ef23d052
commit df7d088653
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205
2 changed files with 2 additions and 0 deletions

View file

@ -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();

View file

@ -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();