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/Settings | |
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/Settings')
-rw-r--r-- | includes/Settings/Source/EtcdSource.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/Settings/Source/EtcdSource.php b/includes/Settings/Source/EtcdSource.php index af48abc4d2a1..9fc16edfe8b5 100644 --- a/includes/Settings/Source/EtcdSource.php +++ b/includes/Settings/Source/EtcdSource.php @@ -160,7 +160,7 @@ class EtcdSource implements CacheableSource { $lastException = false; foreach ( ( $this->resolver )() as $server ) { - list( $host, $port ) = $server; + [ $host, $port ] = $server; try { return $this->loadFromEtcdServer( $host, $port ); |