Skip to content

【BUG】生成markdown命令出错,另外也不支持htmlString #3

Description

@lushaobo

1. 使用命令会出现

php bin/hyperf.php gen:mail TestMail --markdown

错误信息:

PHP Fatal error:  Uncaught TypeError: FriendsOfHyperf\Mail\Command\MailCommand::getView(): Return value must be of type string, true returned in /opt/www/vendor/friendsofhyperf/mail/src/Command/MailCommand.php:92

2. 使用 htmlString

Image
[ERROR] Exception: TypeError(0), Message: FriendsOfHyperf\Mail\Mailer::addContent(): Argument #2 ($view) must be of type Closure|string|null, FriendsOfHyperf\Support\HtmlString given, called in /opt/www/vendor/friendsofhyperf/mail/src/Mailer.php on line 201

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions