助手函数 pinyin()报错
xin6841414 opened this issue · comments
xin6841414 commented
pinyin()助手函数调用方法 function pinyin($string, $option = Pinyin::NONE){}, 这个Pinyin::NONE 没有这个常量,可用的option有PINYIN_DEFAULT,PINYIN_TONE,PINYIN_NO_TONE,PINYIN_ASCII_TONE,PINYIN_NAME等等, 没有NONE,overtrue/laravel-pinyin版本为4.0.0, overtrue/pinyin版本为4.0.5
fasthold commented
4.0.6 版本依然存在
fasthold commented
把 Pinyin::NONE
改成 PINYIN_NO_TONE
就好了