我有一个很简单的问题..我用的是Carbon::parse($date)带功能$date = '15.15.2015'。当然,由于没有第15个月,它不能返回有效的字符串。但是我如何“忽略”错误消息?太棒了
if (Carbon::parse($date) != error) Carbon::parse($date);
else echo 'invalid date, enduser understands the error message';
Run Code Online (Sandbox Code Playgroud) 有人可以向我解释为什么我得到一个
unsatisfiable constraints:
pdftk (missing):
required by: world[pdftk]
Run Code Online (Sandbox Code Playgroud)
运行时错误
apk update
apk add pdftk
Run Code Online (Sandbox Code Playgroud)
在我的高山docker-image中,尽管它似乎已包含在高山中?
最好的祝福