From 35abb011cf1ccdf508c1b075468c7e4ca2fdc137 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Fri, 4 Nov 2022 10:47:02 +0000 Subject: [PATCH] Use short array destructuring instead of list() Introduced in PHP 7.1. Because it's shorter and looks nice. Change-Id: Ia857f37abdb17fe88e91ae17a5610c027c97376e --- includes/SpecialNuke.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialNuke.php b/includes/SpecialNuke.php index c707d9be..c6364990 100644 --- a/includes/SpecialNuke.php +++ b/includes/SpecialNuke.php @@ -251,7 +251,7 @@ class SpecialNuke extends SpecialPage { /** * @var $title Title */ - list( $title, $userName ) = $info; + [ $title, $userName ] = $info; $image = $title->inNamespace( NS_FILE ) ? $localRepo->newFile( $title ) : false; $thumb = $image && $image->exists() ?