The @return doxygen parameter can take a class with a namespace, but
the \ needs to be escaped with an additional \. "\value" is usually interpreted
as a special command.
Actually with "@return OOUI\Widget", e.g., you'll get this output in your docs:
return OOUI
and an error message in the doxygen generation with something like "unknown command \Widget".
With "@return OOUI\\Widget" you'll get the expected output:
return OOUI\Widget
without any error message.
Change-Id: I14c4d7521f81ddd8c7b56facc1f0ae34f86b2299
/**
* Get the OOUI widget for this field.
* @param string $value
- * @return OOUI\ButtonInputWidget
+ * @return OOUI\\ButtonInputWidget
*/
public function getInputOOUI( $value ) {
return new OOUI\ButtonInputWidget( array(
* Get the OOUI version of this field.
* @since 1.26
* @param string $value
- * @return OOUI\CheckboxInputWidget The checkbox widget.
+ * @return OOUI\\CheckboxInputWidget The checkbox widget.
*/
public function getInputOOUI( $value ) {
if ( !empty( $this->mParams['invert'] ) ) {
* Defaults to false, which getOOUI will interpret as "use the HTML version"
*
* @param string $value
- * @return OOUI\Widget|false
+ * @return OOUI\\Widget|false
*/
function getInputOOUI( $value ) {
return false;