1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-11 07:11:04 +01:00

Fix a mismatched method definition in PhabricatorHomeProfileMenuItem

Summary: Fixes T12187. Ref T12190. See T12190 for discussion of why this escaped notice.

Test Plan:
  - Commented out the `error_reporting()` clause around file inclusion.
  - Reproduced the error in PHP7.
  - Corrected the method signature.
  - Reloaded the page, no more error.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12190, T12187

Differential Revision: https://secure.phabricator.com/D17297
This commit is contained in:
epriestley 2017-02-02 06:01:41 -08:00
parent 7e3adb1257
commit d0258a8981

View file

@ -29,7 +29,8 @@ final class PhabricatorHomeProfileMenuItem
return $this->getDefaultName();
}
public function newPageContent() {
public function newPageContent(
PhabricatorProfileMenuItemConfiguration $config) {
$viewer = $this->getViewer();
return id(new PHUIHomeView())