Use short array destructuring instead of list()

Introduced in PHP 7.1. Because it's shorter and looks nice.

Change-Id: I68273c79e8d15ef7b69e2642087e425d8bf0dfa6
This commit is contained in:
Fomafix 2022-11-05 09:08:33 +00:00
parent 29dfa3633c
commit 4874172242

View file

@ -241,7 +241,7 @@ class PopupsContext {
if ( $title->isSpecialPage() ) {
// it's special page, translate it to canonical name
list( $name, $subpage ) = MediaWikiServices::getInstance()->getSpecialPageFactory()
[ $name, $subpage ] = MediaWikiServices::getInstance()->getSpecialPageFactory()
->resolveAlias( $canonicalTitle->getText() );
if ( $name !== null ) {