From: addshore Date: Thu, 24 Mar 2016 10:38:41 +0000 (+0000) Subject: Remove un-needed cast for array key in WatchedItemStore X-Git-Tag: 1.31.0-rc.0~7176^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=231c684d36479d9e1681a5df22504502660bdb88 Remove un-needed cast for array key in WatchedItemStore '1' for example will always result in a php array key of int 1. Same for all strings that look like / can correctly be cast to ints Change-Id: Id52e4273c6b2f342a148181ce63300aac37582d9 --- diff --git a/includes/WatchedItemStore.php b/includes/WatchedItemStore.php index 20ec592d6c..9e21f14bdf 100644 --- a/includes/WatchedItemStore.php +++ b/includes/WatchedItemStore.php @@ -583,7 +583,7 @@ class WatchedItemStore { $this->reuseConnection( $dbr ); foreach ( $res as $row ) { - $timestamps[(int)$row->wl_namespace][$row->wl_title] = $row->wl_notificationtimestamp; + $timestamps[$row->wl_namespace][$row->wl_title] = $row->wl_notificationtimestamp; } return $timestamps;