1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 16:22:43 +01:00

Fix call to non-existing newIcons() in PhabricatorIconSet

Summary:
`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.

Test Plan: Carefully read the code.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25647
This commit is contained in:
Andre Klapper 2024-05-16 13:02:58 +02:00
parent a8af0c6e51
commit 98884f758a

View file

@ -3,6 +3,8 @@
abstract class PhabricatorIconSet
extends Phobject {
abstract protected function newIcons();
final public function getIconSetKey() {
return $this->getPhobjectClassConstant('ICONSETKEY');
}