Page MenuHomePhabricator

Clean up unused parameters of private methods
Closed, ResolvedPublic

Description

In https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GrowthExperiments/+/1168603/2/.phan/config.php the new sniff for unused parameters in private methods was disabled to allow for upgrading.

These no-longer used parameters for methods can often just be dropped, but we should double-check first that them being unused is not a bug.

Steps to approach:

  1. remove te line $cfg['suppress_issue_types'][] = 'PhanUnusedPrivateMethodParameter'; from .phan/config.php
  2. handle all the phan failures that happen as a result of that

Event Timeline

Change #1217266 had a related patch set uploaded (by Cyndywikime; author: Cyndywikime):

[mediawiki/extensions/GrowthExperiments@master] Remove unused private method parameter

https://gerrit.wikimedia.org/r/1217266

Change #1217266 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Remove unused private method parameter

https://gerrit.wikimedia.org/r/1217266