php版本冲突,yii高级模版advanced安装后注册报错:Swift\Mime\SimpleMessage.php:syntax error, unexpected '?'

报错信息部分如下。

1. in J:\apitpl\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Mime\SimpleMessage.php at line 490
481482483484485486487488489490491492493494495496497498499     *
     * @return int
     */
    public function getPriority()
    {
        list($priority) = sscanf($this->getHeaderFieldModel('X-Priority'),
            '%[1-5]'
            );
 
        return $priority ?? 3;
    }
 
    /**
     * Ask for a delivery receipt from the recipient to be sent to $addresses.
     *
     * @param array $addresses
     *
     * @return $this
     */
2. yii\base\ErrorHandler::handleFatalError()

不明白。上网查找。找不到。

进去文件Swift\Mime\SimpleMessage.php里面看……发现是下面的双问号??出错。这个??到底是什么东西?

 /**
     * Get the priority of this message.
     *
     * The returned value is an integer where 1 is the highest priority and 5
     * is the lowest.
     *
     * @return int
     */
    pu
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值