diff --git a/src/applications/files/management/PhabricatorFilesManagementGenerateKeyWorkflow.php b/src/applications/files/management/PhabricatorFilesManagementGenerateKeyWorkflow.php --- a/src/applications/files/management/PhabricatorFilesManagementGenerateKeyWorkflow.php +++ b/src/applications/files/management/PhabricatorFilesManagementGenerateKeyWorkflow.php @@ -20,7 +20,7 @@ public function execute(PhutilArgumentParser $args) { $type = $args->getArg('type'); - if (!strlen($type)) { + if (!phutil_nonempty_string($type)) { throw new PhutilArgumentUsageException( pht( 'Specify the type of key to generate with --type.'));