default:
// Should have been caught during parameter validation
+ // @codeCoverageIgnoreStart
$this->dieDebug( __METHOD__, 'Unknown value for \'formatversion\'' );
+ // @codeCoverageIgnoreEnd
}
}
$data = $this->getResult()->getResultData( null, $transform );
ApiBase::PARAM_HELP_MSG => 'apihelp-json-param-ascii',
],
'formatversion' => [
- ApiBase::PARAM_TYPE => [ 1, 2, 'latest' ],
- ApiBase::PARAM_DFLT => 1,
+ ApiBase::PARAM_TYPE => [ '1', '2', 'latest' ],
+ ApiBase::PARAM_DFLT => '1',
ApiBase::PARAM_HELP_MSG => 'apihelp-json-param-formatversion',
],
];