PhabricatorIconSet::getIcons() calls $this->newIcons() which is undefined.
As all six child classes which extend PhabricatorIconSet implement newIcons(), declare an abstract function in their parent class.
Differential D25647
Fix call to non-existing newIcons() in PhabricatorIconSet aklapper on May 16 2024, 11:03. Authored by
Details
PhabricatorIconSet::getIcons() calls $this->newIcons() which is undefined. As all six child classes which extend PhabricatorIconSet implement newIcons(), declare an abstract function in their parent class. Carefully read the code.
Diff Detail
Event TimelineComment Actions $ grep -FR 'extends PhabricatorIconSet' . ./src/applications/people/icon/PhabricatorPeopleIconSet.php: extends PhabricatorIconSet { ./src/applications/calendar/icon/PhabricatorCalendarIconSet.php: extends PhabricatorIconSet { ./src/applications/project/icon/PhabricatorProjectIconSet.php: extends PhabricatorIconSet { ./src/applications/badges/icon/PhabricatorBadgesIconSet.php: extends PhabricatorIconSet { ./src/applications/search/menuitem/PhabricatorProfileMenuItemIconSet.php: extends PhabricatorIconSet { ./src/applications/dashboard/icon/PhabricatorDashboardIconSet.php: extends PhabricatorIconSet { $ grep -FR 'function newIcons()' . ./src/applications/people/icon/PhabricatorPeopleIconSet.php: protected function newIcons() { ./src/applications/calendar/icon/PhabricatorCalendarIconSet.php: protected function newIcons() { ./src/applications/project/icon/PhabricatorProjectIconSet.php: protected function newIcons() { ./src/applications/badges/icon/PhabricatorBadgesIconSet.php: protected function newIcons() { ./src/applications/search/menuitem/PhabricatorProfileMenuItemIconSet.php: protected function newIcons() { ./src/applications/dashboard/icon/PhabricatorDashboardIconSet.php: protected function newIcons() { |