laravel - Laravel:未定义的索引上限 tcpdf
问题描述
$lineStyle = array(
'color' => $tag['fgcolor'],
'cap' => $tag['style']['cap'] ,
'join' => $tag['style']['join'] ,
'dash' => $tag['style']['dash'] ,
'phase' => $tag['style']['phase'] ,
);
$tag['style']['cap'] 未定义索引:cap
解决方案
您可以在 vendor/tecnickcom/tcpdf/tcpdf.php 中使用以下代码:
$lineStyle = array('color' => $tag['fgcolor'] ?? "",'cap' => $tag['style']['cap'] ?? "",'join' => $tag['style']['join'] ?? "",'dash' => $tag['style']['dash'] ?? "",'phase' => $tag['style']['phase'] ?? "",
);
推荐阅读
- odoo - Employee can see there own info only odoo
- java - 递归查找并返回数组中的最小值和最大值
- python - 如何找到单个 x 和 y 值的拟合参数
- ios - 如何使用 nativeScript 制作聊天应用程序?
- javascript - 如何在 carousal 中设置过渡效果(react)
- python-3.x - 为什么在 Python 的这个递归函数中,即使满足基本条件,执行也会继续?
- vb.net - 如何从动态创建的文本框中将数据保存到数据库中
- kotlin - 仅在创建期间生成数据类属性值
- oracle-apex - 使用 Owa_cookie 包设置 cookie
- python - 根据列条件向 pandas 数据框添加行