Resolve required parameter after optional in Xml
authorErik Bernhardson <ebernhardson@wikimedia.org>
Fri, 8 Jun 2018 21:37:17 +0000 (14:37 -0700)
committerEBernhardson <ebernhardson@wikimedia.org>
Fri, 8 Jun 2018 21:48:41 +0000 (21:48 +0000)
Change-Id: If04d3b347ec2839b986d8fe85d3f2ed392fc83ed

includes/Xml.php

index 4f2720e..af38740 100644 (file)
@@ -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 . "</$element>";
        }