From 75df5017a8eb377651e5cf10cd6b1a52b7efe7b5 Mon Sep 17 00:00:00 2001 From: Erik Bernhardson Date: Fri, 8 Jun 2018 14:37:17 -0700 Subject: [PATCH] Resolve required parameter after optional in Xml Change-Id: If04d3b347ec2839b986d8fe85d3f2ed392fc83ed --- includes/Xml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Xml.php b/includes/Xml.php index 4f2720ed85..af38740a8c 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -124,11 +124,11 @@ class Xml { * content you have is already valid xml. * * @param string $element Element name - * @param array $attribs Array of attributes + * @param array|null $attribs Array of attributes * @param string $contents Content of the element * @return string */ - public static function tags( $element, $attribs = null, $contents ) { + public static function tags( $element, $attribs, $contents ) { return self::openElement( $element, $attribs ) . $contents . ""; } -- 2.20.1