wiki.techinc.nl/includes/libs/rdbms/dbal/MWPostgreSqlPlatformCompat.php
Zabe daa9bfab3b Suppress php 7.4 phan false positive
see T298571

This failure only shows up for php 7.4 since that is using
dbal 3.x.x while php 7.2 is using dbal 2.x.x

Phan analysis is being disabled for those files for php 7.2
since those are now failing with 'unused suppression' and
php 7.2 support is going to be dropped in the near future,
so that doesn't matter to much.

Bug: T316518
Change-Id: I74da37dc4329a7dd2c015a9d1fc7037a866f40c9
2022-09-19 14:22:50 +00:00

22 lines
487 B
PHP

<?php
/**
* @phan-file-suppress PhanCommentAbstractOnInheritedMethod T298571
*/
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 {
}
}