wiki.techinc.nl/includes/libs/rdbms/database/MWPostgreSqlPlatformCompat.php
Reedy b16a862d43 Upgrade doctrine/dbal from 2.10.4 to 3.0.0 for PHP 8.0 support
Some irritating breaking changes, including dropping PHP 7.2 support
and renaming the classes we care about. For now, hack in via || and
some back-compatibility class aliases.

Bug: T270732
Change-Id: I685f099584d2f0e5fa17f1f4275eab5289c7bfee
2020-12-23 02:24:31 +00:00

18 lines
410 B
PHP

<?php
namespace Wikimedia\Rdbms;
// T270740 - HACK
if ( class_exists( \Doctrine\DBAL\Platforms\PostgreSQL94Platform::class ) ) {
/**
* @suppress PhanRedefineClass
*/
class MWPostgreSqlPlatformCompat extends \Doctrine\DBAL\Platforms\PostgreSQL94Platform {
}
} else {
/**
* @suppress PhanRedefineClass
*/
class MWPostgreSqlPlatformCompat extends \Doctrine\DBAL\Platforms\PostgreSqlPlatform {
}
}