Use (int) rather than intval()
[lhc/web/wiklou.git] / includes / api / ApiFeedWatchlist.php
index 8c0b42d..935bb09 100644 (file)
@@ -61,7 +61,7 @@ class ApiFeedWatchlist extends ApiBase {
                        }
 
                        // limit to the number of hours going from now back
-                       $endTime = wfTimestamp( TS_MW, time() - intval( $params['hours'] * 60 * 60 ) );
+                       $endTime = wfTimestamp( TS_MW, time() - (int)$params['hours'] * 60 * 60 );
 
                        // Prepare parameters for nested request
                        $fauxReqArr = [