diff --git a/src/applications/files/management/PhabricatorFilesManagementEncodeWorkflow.php b/src/applications/files/management/PhabricatorFilesManagementEncodeWorkflow.php index f7d299bc5f..3d68741feb 100644 --- a/src/applications/files/management/PhabricatorFilesManagementEncodeWorkflow.php +++ b/src/applications/files/management/PhabricatorFilesManagementEncodeWorkflow.php @@ -42,7 +42,7 @@ final class PhabricatorFilesManagementEncodeWorkflow $format_list = implode(', ', $format_list); $format_key = $args->getArg('as'); - if (!strlen($format_key)) { + if (!phutil_nonempty_string($format_key)) { throw new PhutilArgumentUsageException( pht( 'Use --as to select a target encoding format. Available '.