media: Do not pass unused parameter
authorJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2018 16:55:25 +0000 (17:55 +0100)
committerLegoktm <legoktm@member.fsf.org>
Sun, 2 Dec 2018 00:00:33 +0000 (00:00 +0000)
Found by PHPStan.

Change-Id: Id9418a5aa95e8541824bbf1235307a3969e75fb8

includes/media/SVGMetadataExtractor.php

index e52bf0b..ca398ff 100644 (file)
@@ -165,7 +165,7 @@ class SVGReader {
                        } elseif ( $isSVG && $tag == 'desc' ) {
                                $this->readField( $tag, 'description' );
                        } elseif ( $isSVG && $tag == 'metadata' && $type == XMLReader::ELEMENT ) {
-                               $this->readXml( $tag, 'metadata' );
+                               $this->readXml( 'metadata' );
                        } elseif ( $isSVG && $tag == 'script' ) {
                                // We normally do not allow scripted svgs.
                                // However its possible to configure MW to let them