Page MenuHomePhorge

Fix return value of ArcanistWeldWorkflow::runWorkflow()
ClosedPublic

Authored by aklapper on Sun, Jun 15, 10:42.

Details

Summary

ArcanistWeldWorkflow::runWorkflow() is supposed to return an int like all other implementations of ArcanistWorkflow::runWorkflow() already do.

Test Plan

Run static code analysis, don't get a complaint about a missing return value anymore.

Diff Detail

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

Event Timeline

mainframe98 subscribed.
mainframe98 added inline comments.
src/workflow/ArcanistWeldWorkflow.php
72–74

Implode returns a string, not an int.

Also, arc weld reports the results to stdout, which requires using echo.

This revision now requires changes to proceed.Sun, Jun 15, 12:07

Thanks. Learned something about arc weld which I obviously have never used before (and hadn't realized that this is actually a command itself).

This revision is now accepted and ready to land.Sun, Jun 15, 19:56

Fantastic. We have a cat but in PHP. And it returns random data.

arc weld README.md README.md

Stay sure that you will always get random output, before and output the patch.