diff --git a/src/applications/herald/management/HeraldTestManagementWorkflow.php b/src/applications/herald/management/HeraldTestManagementWorkflow.php index d58e7c4190..f7dd0e3e19 100644 --- a/src/applications/herald/management/HeraldTestManagementWorkflow.php +++ b/src/applications/herald/management/HeraldTestManagementWorkflow.php @@ -30,7 +30,7 @@ final class HeraldTestManagementWorkflow $viewer = $this->getViewer(); $object_name = $args->getArg('object'); - if (!strlen($object_name)) { + if (!phutil_nonempty_string($object_name)) { throw new PhutilArgumentUsageException( pht('Specify an object to test rules for with "--object".')); } @@ -69,7 +69,7 @@ final class HeraldTestManagementWorkflow $content_type = $args->getArg('type'); - if (!strlen($content_type)) { + if (!phutil_nonempty_string($content_type)) { throw new PhutilArgumentUsageException( pht( 'Specify a content type to run rules for. For this object, valid '.