Use (int) rather than intval()
[lhc/web/wiklou.git] / includes / api / ApiSetNotificationTimestamp.php
index 41c207b..c9ebfa8 100644 (file)
@@ -161,7 +161,7 @@ class ApiSetNotificationTimestamp extends ApiBase {
                                        $ns = $title->getNamespace();
                                        $dbkey = $title->getDBkey();
                                        $r = [
-                                               'ns' => intval( $ns ),
+                                               'ns' => (int)$ns,
                                                'title' => $title->getPrefixedText(),
                                        ];
                                        if ( !$title->exists() ) {