X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FLinkHolderArray.php;h=5eb799e9e6af0f58775490cea7e8f23e6d80733a;hb=824469f51cc1c159130bd4eddcf98cbf528798b6;hp=078c819d6f50590a6f7ae0517abd83f1047546dd;hpb=d3a4ac1bb6accbaf3be0c0067358b64184a03490;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/LinkHolderArray.php b/includes/parser/LinkHolderArray.php index 078c819d6f..5eb799e9e6 100644 --- a/includes/parser/LinkHolderArray.php +++ b/includes/parser/LinkHolderArray.php @@ -48,6 +48,7 @@ class LinkHolderArray { * Reduce memory usage to reduce the impact of circular references */ public function __destruct() { + // @phan-suppress-next-line PhanTypeSuspiciousNonTraversableForeach foreach ( $this as $name => $value ) { unset( $this->$name ); } @@ -632,8 +633,7 @@ class LinkHolderArray { * @private */ public function replaceTextCallback( $matches ) { - $type = $matches[1]; - $key = $matches[2]; + list( , $type, $key ) = $matches; if ( $type == 'LINK' ) { list( $ns, $index ) = explode( ':', $key, 2 ); if ( isset( $this->internals[$ns][$index]['text'] ) ) {