diff --git a/src/applications/aphlict/management/PhabricatorAphlictManagementNotifyWorkflow.php b/src/applications/aphlict/management/PhabricatorAphlictManagementNotifyWorkflow.php index a7653e74b5..129538f49b 100644 --- a/src/applications/aphlict/management/PhabricatorAphlictManagementNotifyWorkflow.php +++ b/src/applications/aphlict/management/PhabricatorAphlictManagementNotifyWorkflow.php @@ -26,7 +26,7 @@ final class PhabricatorAphlictManagementNotifyWorkflow $viewer = $this->getViewer(); $username = $args->getArg('user'); - if (!strlen($username)) { + if (!phutil_nonempty_string($username)) { throw new PhutilArgumentUsageException( pht( 'Specify a user to notify with "--user".')); @@ -45,7 +45,7 @@ final class PhabricatorAphlictManagementNotifyWorkflow } $message = $args->getArg('message'); - if (!strlen($message)) { + if (!phutil_nonempty_string($message)) { throw new PhutilArgumentUsageException( pht( 'Specify a message to send with "--message".'));