}
if ( is_null( $resultPageSet ) ) {
- $a = [ 'pageid' => intval( $row->page_id ) ];
+ $a = [ 'pageid' => (int)$row->page_id ];
ApiQueryBase::addTitleInfo( $a, $t );
if ( $row->page_is_redirect ) {
$a['redirect'] = true;
}
if ( is_null( $resultPageSet ) ) {
- $a['pageid'] = intval( $row->page_id );
+ $a['pageid'] = (int)$row->page_id;
ApiQueryBase::addTitleInfo( $a, Title::makeTitle( $row->page_namespace, $row->page_title ) );
if ( $row->page_is_redirect ) {
$a['redirect'] = true;
$this->params['limit'] = $this->getMain()->canApiHighLimits() ? $botMax : $userMax;
$result->addParsedLimit( $this->getModuleName(), $this->params['limit'] );
} else {
- $this->params['limit'] = intval( $this->params['limit'] );
+ $this->params['limit'] = (int)$this->params['limit'];
$this->validateLimit( 'limit', $this->params['limit'], 1, $userMax, $botMax );
}