X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fwatcheditem%2FWatchedItemQueryService.php;h=17d9b91ac024df3a4fa4d6e5c25fba60a16a09e7;hb=a075271157d32567e894c668aa2b76138c491b95;hp=a477b644d8f2fe33ac34bee674643895fdd57286;hpb=9957322e4439156ed012469479dc3fc49a6936ca;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/watcheditem/WatchedItemQueryService.php b/includes/watcheditem/WatchedItemQueryService.php index a477b644d8..17d9b91ac0 100644 --- a/includes/watcheditem/WatchedItemQueryService.php +++ b/includes/watcheditem/WatchedItemQueryService.php @@ -220,7 +220,7 @@ class WatchedItemQueryService { $joinConds ); - $limit = isset( $dbOptions['LIMIT'] ) ? $dbOptions['LIMIT'] : INF; + $limit = $dbOptions['LIMIT'] ?? INF; $items = []; $startFrom = null; foreach ( $res as $row ) { @@ -320,8 +320,8 @@ class WatchedItemQueryService { } private function getRecentChangeFieldsFromRow( stdClass $row ) { - // This can be simplified to single array_filter call filtering by key value, - // once we stop supporting PHP 5.5 + // FIXME: This can be simplified to single array_filter call filtering by key value, + // now we have stopped supporting PHP 5.5 $allFields = get_object_vars( $row ); $rcKeys = array_filter( array_keys( $allFields ),