Use (int) rather than intval()
[lhc/web/wiklou.git] / includes / api / ApiPatrol.php
index 2b65f95..d1212f3 100644 (file)
@@ -71,7 +71,7 @@ class ApiPatrol extends ApiBase {
                        $this->dieStatus( $this->errorArrayToStatus( $retval, $user ) );
                }
 
-               $result = [ 'rcid' => intval( $rc->getAttribute( 'rc_id' ) ) ];
+               $result = [ 'rcid' => (int)$rc->getAttribute( 'rc_id' ) ];
                ApiQueryBase::addTitleInfo( $result, $rc->getTitle() );
                $this->getResult()->addValue( null, $this->getModuleName(), $result );
        }