Page MenuHomePhorge

Add missing ArcanistWorkflow::runWorkflow method
AcceptedPublic

Authored by amybones on Fri, May 30, 23:37.

Details

Reviewers
aklapper
Group Reviewers
O1: Blessed Committers
Summary

No definition of runWorkflow existed in ArcanistWorkflow, now it does and
now phpStan is happier. This also needed to correct the visibility of the phage
workflow.

Test Plan

See no more type errors.

Diff Detail

Repository
rARC Arcanist
Branch
arc_workflow_fixes (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 2030
Build 2030: arc lint + arc unit

Event Timeline

Get rid of coverage errors :)

(This seems nice) Small question: Does it still work for you keeping the method as protected instead of public?

aklapper subscribed.

Running phpstan analyse, before this patch I get Call to an undefined method ArcanistWorkflow::runWorkflow(), after this patch I get Method ArcanistWorkflow::runWorkflow() invoked with 1 parameter, 0 required, both in src/workflow/ArcanistWorkflow.php:227. That looks like an improvement indeed.

(This seems nice) Small question: Does it still work for you keeping the method as protected instead of public?

Keeping it protected will throw Protected method PhageExecWorkflow::runWorkflow() overriding public method ArcanistWorkflow::runWorkflow() should also be public.

This revision is now accepted and ready to land.Sat, May 31, 11:56

Keeping it protected will throw Protected method PhageExecWorkflow::runWorkflow() overriding public method ArcanistWorkflow::runWorkflow() should also be public.

Exactly what I mean: this patch introduced a public method, but what about just introducing a protected method? and rollback src/phage/workflow/PhageExecWorkflow.php