diff options
author | Tim Starling <tstarling@wikimedia.org> | 2022-10-21 15:32:38 +1100 |
---|---|---|
committer | Tim Starling <tstarling@wikimedia.org> | 2022-10-21 15:33:37 +1100 |
commit | 0077c5da15aab081125ee1c72cc4d95225e4ff5f (patch) | |
tree | 27e2128c722cb91eb72546bf289d1845a5974d52 /includes/api/ApiPageSet.php | |
parent | d2b199c51762e417c75778ca9016b8dc62c1bb67 (diff) | |
download | mediawikicore-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 'includes/api/ApiPageSet.php')
-rw-r--r-- | includes/api/ApiPageSet.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index 0afe83662fd5..7aaa5a0671e0 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -1429,7 +1429,7 @@ class ApiPageSet extends ApiBase { $context->setTitle( $titleObj ); $context->setRequest( new FauxRequest ); $special->setContext( $context ); - list( /* $alias */, $subpage ) = $this->specialPageFactory->resolveAlias( $dbkey ); + [ /* $alias */, $subpage ] = $this->specialPageFactory->resolveAlias( $dbkey ); $target = $special->getRedirect( $subpage ); } } |