Use mediawiki/at-ease library for suppressing warnings
authorKunal Mehta <legoktm@gmail.com>
Wed, 10 Jun 2015 18:29:05 +0000 (11:29 -0700)
committerBryanDavis <bdavis@wikimedia.org>
Thu, 11 Jun 2015 18:49:29 +0000 (18:49 +0000)
commitf6e5079a6964b10deff40c3224957cab2474dde7
treef729355ec37ffb7c4acaf9ce091d1c89ee5b9036
parentc403d4838dc8662d62902ced3713c1d9be6309cc
Use mediawiki/at-ease library for suppressing warnings

wfSuppressWarnings() and wfRestoreWarnings() were split out into a
separate library. All usages in core were replaced with the new
functions, and the wf* global functions are marked as deprecated.

Additionally, some uses of @ were replaced due to composer's autoloader
being loaded even earlier.

Ie1234f8c12693408de9b94bf6f84480a90bd4f8e adds the library to
mediawiki/vendor.

Bug: T100923
Change-Id: I5c35079a0a656180852be0ae6b1262d40f6534c4
95 files changed:
composer.json
includes/Collation.php
includes/GitInfo.php
includes/GlobalFunctions.php
includes/HistoryBlob.php
includes/HttpFunctions.php
includes/Import.php
includes/MediaWiki.php
includes/MimeMagic.php
includes/OutputPage.php
includes/Sanitizer.php
includes/Setup.php
includes/SquidPurgeClient.php
includes/StreamFile.php
includes/WebRequest.php
includes/api/ApiQueryImageInfo.php
includes/cache/CacheDependency.php
includes/cache/FileCacheBase.php
includes/cache/LocalisationCache.php
includes/cache/MessageCache.php
includes/changes/RecentChange.php
includes/content/ContentHandler.php
includes/db/Database.php
includes/db/DatabaseMssql.php
includes/db/DatabaseMysqlBase.php
includes/db/DatabaseOracle.php
includes/db/DatabasePostgres.php
includes/debug/logger/LegacyLogger.php
includes/exception/MWExceptionHandler.php
includes/filebackend/FSFile.php
includes/filebackend/FileBackendStore.php
includes/filebackend/FileOp.php
includes/filebackend/MemoryFileBackend.php
includes/filebackend/SwiftFileBackend.php
includes/filebackend/TempFSFile.php
includes/filebackend/lockmanager/FSLockManager.php
includes/filerepo/FileRepo.php
includes/installer/DatabaseInstaller.php
includes/installer/Installer.php
includes/installer/SqliteInstaller.php
includes/logging/LogEntry.php
includes/mail/UserMailer.php
includes/media/Bitmap.php
includes/media/DjVu.php
includes/media/DjVuImage.php
includes/media/Exif.php
includes/media/ExifBitmap.php
includes/media/GIF.php
includes/media/GIFMetadataExtractor.php
includes/media/IPTC.php
includes/media/ImageHandler.php
includes/media/JpegMetadataExtractor.php
includes/media/MediaHandler.php
includes/media/PNG.php
includes/media/PNGMetadataExtractor.php
includes/media/SVG.php
includes/media/SVGMetadataExtractor.php
includes/media/XCF.php
includes/media/XMP.php
includes/objectcache/MemcachedClient.php
includes/objectcache/SqlBagOStuff.php
includes/parser/Preprocessor_DOM.php
includes/resourceloader/ResourceLoaderModule.php
includes/search/SearchMySQL.php
includes/search/SearchSqlite.php
includes/skins/MediaWikiI18N.php
includes/specials/SpecialContributions.php
includes/specials/SpecialDeletedContributions.php
includes/specials/SpecialExport.php
includes/specials/SpecialLockdb.php
includes/specials/SpecialUnlockdb.php
includes/specials/SpecialVersion.php
includes/upload/UploadBase.php
includes/utils/MWCryptRand.php
includes/utils/UIDGenerator.php
languages/Language.php
maintenance/Maintenance.php
maintenance/backup.inc
maintenance/backupTextPass.inc
maintenance/checkSyntax.php
maintenance/importImages.php
maintenance/install.php
maintenance/jsparse.php
maintenance/language/StatOutputs.php
maintenance/rebuildFileCache.php
maintenance/sqlite.php
maintenance/storage/fixBug20757.php
maintenance/storage/recompressTracked.php
tests/phpunit/MediaWikiTestCase.php
tests/phpunit/includes/GlobalFunctions/GlobalTest.php
tests/phpunit/includes/api/ApiUploadTest.php
tests/phpunit/includes/debug/MWDebugTest.php
tests/phpunit/includes/libs/JavaScriptMinifierTest.php
tests/phpunit/structure/AutoLoaderTest.php
thumb.php