rPe1b8532e2478395bd1f36baecb998adeef5bea3d introduced an implementation of newWorkCommands() in the child class NuanceFormItemType which is called in parent NuanceItemType::buildWorkCommands() without being defined in that parent class.
Thus define newWorkCommands() as an abstract class in parent class NuanceItemType and add an implementation returning null in the other child class NuanceGitHubEventItemType to make static code analyzers happy.
Details
Details
- Reviewers
valerio.bozzolan - Group Reviewers
O1: Blessed Committers - Commits
- rP3349c3be17c7: Fix call to non-existing newWorkCommands() in NuanceItemType
Carefully read the code.
Diff Detail
Diff Detail
- Repository
- rP Phorge
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Thanks. Your edit effectively reflects what already happens, but interestingly, it still may crash 🤔
Giving the mentioned commit, I'm quite sure a safe default should be return array() to avoid further crashes in this foreach():
P.S.
I invested 10 minutes in expanding the test plan, but I still completely do not understand what Nuance is and how to test this piece ✨
Comment Actions
Yeah right, NuanceFormItemType returns an array so NuanceGitHubEventItemType should also return an empty array. Good point, thanks!