From a717db8e6088ee2bdc64677d15702bb0ce6fadef Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Thu, 16 May 2024 15:58:33 +0330 Subject: Add namespace and deprecation alias to FormatJson This patch introduces a namespace declaration for the MediaWiki\Json to FormatJson and establishes a class alias marked as deprecated since version 1.43. Bug: T353458 Change-Id: I5e1311e4eb7a878a7db319b725ae262f40671c32 --- tests/phpunit/includes/api/ApiMainTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/phpunit/includes/api/ApiMainTest.php') diff --git a/tests/phpunit/includes/api/ApiMainTest.php b/tests/phpunit/includes/api/ApiMainTest.php index 3fd1005cd25a..253560f091eb 100644 --- a/tests/phpunit/includes/api/ApiMainTest.php +++ b/tests/phpunit/includes/api/ApiMainTest.php @@ -9,7 +9,6 @@ use ApiErrorFormatter_BackCompat; use ApiMain; use ApiRawMessage; use ApiUsageException; -use FormatJson; use Generator; use InvalidArgumentException; use LogicException; @@ -17,6 +16,7 @@ use MediaWiki\Config\Config; use MediaWiki\Config\HashConfig; use MediaWiki\Config\MultiConfig; use MediaWiki\Context\RequestContext; +use MediaWiki\Json\FormatJson; use MediaWiki\Language\RawMessage; use MediaWiki\MainConfigNames; use MediaWiki\Permissions\Authority; -- cgit v1.2.3