return 'application/vnd.php.serialized';
}
+ /**
+ * @suppress SecurityCheck-XSS Output type is not text/html
+ */
public function execute() {
$params = $this->extractRequestParams();
public function getAllowedParams() {
$ret = parent::getAllowedParams() + [
'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-php-param-formatversion',
],
];