From 2972ca80a877d218a60596f1168f4e470c153028 Mon Sep 17 00:00:00 2001 From: Florianschmidtwelzow Date: Thu, 23 Jul 2015 07:42:41 +0200 Subject: [PATCH] Fix doxygen return class with namespace Doxygen uses a single "\" as a start sign for a command. Anything after "OOUI" will be interpreted as a command (and throws a warning "Unknown command" or something else) when you create the doc. The doc itself will show the following as the return values of the function: Returns OOUI|OOUI See: https://phabricator.wikimedia.org/F214499 As a workaround you can escape the backslash with a second backslash (OOUI\\FieldLayout) or this notation should work, too: OOUI::Fieldlayout Follow up: I9050c4a09cbb841ad26ca01a25f706227e35e3be Change-Id: I0c9300e72e00e1d827c63074cbaa51a935828695 --- includes/htmlform/HTMLFormField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/htmlform/HTMLFormField.php b/includes/htmlform/HTMLFormField.php index 1d9b255586..1d8137ef87 100644 --- a/includes/htmlform/HTMLFormField.php +++ b/includes/htmlform/HTMLFormField.php @@ -604,7 +604,7 @@ abstract class HTMLFormField { /** * Get a FieldLayout (or subclass thereof) to wrap this field in when using OOUI output. - * @return OOUI\FieldLayout|OOUI\ActionFieldLayout + * @return OOUI\\FieldLayout|OOUI\\ActionFieldLayout */ protected function getFieldLayoutOOUI( $inputField, $config ) { if ( isset( $this->mClassWithButton ) ) { -- 2.20.1