diff --git a/src/workflow/ArcanistWorkflow.php b/src/workflow/ArcanistWorkflow.php --- a/src/workflow/ArcanistWorkflow.php +++ b/src/workflow/ArcanistWorkflow.php @@ -480,7 +480,7 @@ // token-based authentication. Use that instead of all the certificate // stuff. $token = idx($credentials, 'token', ''); - if (strlen($token)) { + if (phutil_nonempty_string($token)) { $conduit = $this->getConduit(); $conduit->setConduitToken($token);