Found by PHPStan.
Change-Id: Id9418a5aa95e8541824bbf1235307a3969e75fb8
} elseif ( $isSVG && $tag == 'desc' ) {
$this->readField( $tag, 'description' );
} elseif ( $isSVG && $tag == 'metadata' && $type == XMLReader::ELEMENT ) {
} 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
} elseif ( $isSVG && $tag == 'script' ) {
// We normally do not allow scripted svgs.
// However its possible to configure MW to let them