In PHP 7.3, compact() now emits warnings when a variable doesn't exist.
Because our language files aren't required to contain all the possible
variables, this results in massive spam trying to run tests.
Change-Id: Idab0340ec1cdebfca67cb448e350a408438bcbbc
Wikimedia\restoreWarnings();
if ( $_fileType == 'core' || $_fileType == 'extension' ) {
+
+ // Lnguage files aren't required to contain all the possible variables, so suppress warnings
+ // when variables don't exist in tests
+ Wikimedia\suppressWarnings();
$data = compact( self::$allKeys );
+ Wikimedia\restoreWarnings();
} elseif ( $_fileType == 'aliases' ) {
$data = compact( 'aliases' );
} else {