aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiOpenSearchTest.php
diff options
context:
space:
mode:
authorTim Starling <tstarling@wikimedia.org>2022-10-21 15:32:38 +1100
committerTim Starling <tstarling@wikimedia.org>2022-10-21 15:33:37 +1100
commit0077c5da15aab081125ee1c72cc4d95225e4ff5f (patch)
tree27e2128c722cb91eb72546bf289d1845a5974d52 /tests/phpunit/includes/api/ApiOpenSearchTest.php
parentd2b199c51762e417c75778ca9016b8dc62c1bb67 (diff)
downloadmediawikicore-0077c5da15aab081125ee1c72cc4d95225e4ff5f.tar.gz
mediawikicore-0077c5da15aab081125ee1c72cc4d95225e4ff5f.zip
Use short array destructuring instead of list()
Introduced in PHP 7.1. Because it's shorter and looks nice. I used regex replacement. Change-Id: I0555e199d126cd44501f859cb4589f8bd49694da
Diffstat (limited to 'tests/phpunit/includes/api/ApiOpenSearchTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiOpenSearchTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/ApiOpenSearchTest.php b/tests/phpunit/includes/api/ApiOpenSearchTest.php
index 9df73aae8c04..fb1220e03381 100644
--- a/tests/phpunit/includes/api/ApiOpenSearchTest.php
+++ b/tests/phpunit/includes/api/ApiOpenSearchTest.php
@@ -13,7 +13,7 @@ class ApiOpenSearchTest extends MediaWikiIntegrationTestCase {
$config->method( 'getSearchTypes' )
->willReturn( [ 'the one ring' ] );
- list( $engine, $engineFactory ) = $this->replaceSearchEngine();
+ [ $engine, $engineFactory ] = $this->replaceSearchEngine();
$ctx = new RequestContext();
$apiMain = new ApiMain( $ctx );