diff --git a/src/applications/herald/management/HeraldRuleManagementWorkflow.php b/src/applications/herald/management/HeraldRuleManagementWorkflow.php --- a/src/applications/herald/management/HeraldRuleManagementWorkflow.php +++ b/src/applications/herald/management/HeraldRuleManagementWorkflow.php @@ -33,7 +33,7 @@ $viewer = $this->getViewer(); $rule_name = $args->getArg('rule'); - if (!strlen($rule_name)) { + if (!phutil_nonempty_string($rule_name)) { throw new PhutilArgumentUsageException( pht('Specify a rule to edit with "--rule ".')); }