Use (int) rather than intval()
[lhc/web/wiklou.git] / includes / api / ApiLogin.php
index 8f2e759..133f0ce 100644 (file)
@@ -197,7 +197,7 @@ class ApiLogin extends ApiBase {
                                $injected_html = '';
                                Hooks::run( 'UserLoginComplete', [ &$user, &$injected_html, true ] );
 
-                               $result['lguserid'] = intval( $user->getId() );
+                               $result['lguserid'] = (int)$user->getId();
                                $result['lgusername'] = $user->getName();
                                break;