Page MenuHomePhorge

Fix call to non-existing getTransactionCommentForSave() in PhabricatorInlineComment
ClosedPublic

Authored by aklapper on May 16 2024, 10:25.
Tags
None
Referenced Files
F2938180: D25644.1737976950.diff
Sun, Jan 26, 11:22
F2935082: D25644.1737818737.diff
Fri, Jan 24, 15:25
F2933067: D25644.1737750982.diff
Thu, Jan 23, 20:36
F2933066: D25644.1737750981.diff
Thu, Jan 23, 20:36
F2933065: D25644.1737750979.diff
Thu, Jan 23, 20:36
F2932894: D25644.1737745906.diff
Thu, Jan 23, 19:11
F2928594: D25644.1737651596.diff
Wed, Jan 22, 16:59
F2908892: D25644.1737384867.diff
Sun, Jan 19, 14:54
Tokens
"Love" token, awarded by valerio.bozzolan.

Details

Summary

rPb48a22bf50a32895566e9aa66c1d7aff87a492b8 moved the call $this->getTransactionCommentForSave()->save() from within PhabricatorAuditInlineComment to the new (parent) class PhabricatorInlineComment.php, however the later does not define this function.

As the two child classes which extend PhabricatorInlineComment both implement getTransactionCommentForSave(), declare an abstract function in their parent class.

Test Plan

Carefully read the code.

Diff Detail

Repository
rP Phorge
Branch
NEinlineCommentForSave (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 1336
Build 1336: arc lint + arc unit

Event Timeline

Maybe a good moment for minimal PHPDoc with

/**
 * @return Phobject
 */

sgtm

grep -R 'extends PhabricatorInlineComment *{' .
./applications/audit/storage/PhabricatorAuditInlineComment.php:  extends PhabricatorInlineComment {
./applications/differential/storage/DifferentialInlineComment.php:  extends PhabricatorInlineComment {
grep -R 'function getTransactionCommentForSave(' .
./applications/audit/storage/PhabricatorAuditInlineComment.php:  public function getTransactionCommentForSave() {
./applications/differential/storage/DifferentialInlineComment.php:  public function getTransactionCommentForSave() {
This revision is now accepted and ready to land.Jun 7 2024, 15:10