diff options
author | Erik Bernhardson <ebernhardson@wikimedia.org> | 2017-01-17 16:48:59 -0800 |
---|---|---|
committer | Erik Bernhardson <ebernhardson@wikimedia.org> | 2017-01-18 13:07:39 -0800 |
commit | e5b8bf49420fd9f0b11d8594cd0ff4a353c513e7 (patch) | |
tree | 783f3a4ddb391b03c85307f1a310c5c9cbb5e18a /includes/api/ApiFeedWatchlist.php | |
parent | f4ed4cd93907bd4ff0fd3490daaad5ce7bbbba28 (diff) | |
download | mediawikicore-e5b8bf49420fd9f0b11d8594cd0ff4a353c513e7.tar.gz mediawikicore-e5b8bf49420fd9f0b11d8594cd0ff4a353c513e7.zip |
Un-blacklist PhanUndeclaredVariable
Undeclared variables are a very common error type that we want to catch
as often as possible. To avoid needing to refactor a variety of global
level code (mostly in old-style maintenance scripts) this ignores
undeclared variables in global scope. This is still a good improvement
over what was happening previously.
Change-Id: I50b41d571724244552074b9408abbdf6160aca59
Diffstat (limited to 'includes/api/ApiFeedWatchlist.php')
-rw-r--r-- | includes/api/ApiFeedWatchlist.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/api/ApiFeedWatchlist.php b/includes/api/ApiFeedWatchlist.php index b9bb761b3c3d..7f349bce5d6a 100644 --- a/includes/api/ApiFeedWatchlist.php +++ b/includes/api/ApiFeedWatchlist.php @@ -52,6 +52,7 @@ class ApiFeedWatchlist extends ApiBase { public function execute() { $config = $this->getConfig(); $feedClasses = $config->get( 'FeedClasses' ); + $params = []; try { $params = $this->extractRequestParams(); |