Fix the little documentation that FormOptions::consumeValue() has
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Sun, 16 Dec 2012 21:14:01 +0000 (22:14 +0100)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 17 Dec 2012 08:30:44 +0000 (09:30 +0100)
Change-Id: I9a4bfaace4f19ba5e3e8a405118fe1bae3a1696d

includes/FormOptions.php

index 1cfe88e..8411bc4 100644 (file)
@@ -178,8 +178,9 @@ class FormOptions implements ArrayAccess {
 
        /**
         * @todo Document
-        * @param $name String: option name
-        * @return null
+        * @param string $name Option name
+        * @throws MWException If option does not exist.
+        * @return mixed Value or the default value if it is null.
         */
        public function consumeValue( $name ) {
                $this->validateName( $name, true );