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.
Details
- Reviewers
aklapper - Group Reviewers
O1: Blessed Committers
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
(This seems nice) Small question: Does it still work for you keeping the method as protected instead of public?
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.
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