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
18 lines
410 B
PHP
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 {
|
|
}
|
|
}
|