Page MenuHomePhorge

Remove call to undefined method DoorkeeperDAO::getObjectKey()
ClosedPublic

Authored by aklapper on Jul 19 2024, 11:43.

Details

Summary

Remove call to undefined static method DoorKeeperDAO::getObjectKey() in the DoorkeeperExternalObject class. getObjectKey() does not exist (and never existed) in any of its parent classes (DoorkeeperDAO, PhabricatorLiskDAO, LiskDAO).

Test Plan

Run static code analysis. Grep the source code and check the git history of parent classes.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

src/applications/doorkeeper/storage/DoorkeeperExternalObject.php
62–63

At this point we can just return $this

src/applications/doorkeeper/storage/DoorkeeperExternalObject.php
62–63

This is a getter, not a setter, not sure I understand you :-/
Did you mean saving one line via return $this->getRef()->getObjectKey(); maybe?

sgtm

Just that oneline

src/applications/doorkeeper/storage/DoorkeeperExternalObject.php
62–63

Yep

This revision is now accepted and ready to land.Jul 21 2024, 22:12

Skip assigning variable; direct return