aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiMain.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/api/ApiMain.php')
-rw-r--r--includes/api/ApiMain.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php
index 3cc34070e264..634ebd167dff 100644
--- a/includes/api/ApiMain.php
+++ b/includes/api/ApiMain.php
@@ -1277,8 +1277,8 @@ class ApiMain extends ApiBase {
if ( $lagInfo['lag'] > $maxLag ) {
$response = $this->getRequest()->response();
- $response->header( 'Retry-After: ' . max( intval( $maxLag ), 5 ) );
- $response->header( 'X-Database-Lag: ' . intval( $lagInfo['lag'] ) );
+ $response->header( 'Retry-After: ' . max( (int)$maxLag, 5 ) );
+ $response->header( 'X-Database-Lag: ' . (int)$lagInfo['lag'] );
if ( $this->getConfig()->get( 'ShowHostnames' ) ) {
$this->dieWithError(