overtrue / laravel-pinyin

:cn: Chinese to Pinyin translator for Laravel 5 / Lumen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

助手函数 pinyin()报错

xin6841414 opened this issue · comments

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

4.0.6 版本依然存在

Pinyin::NONE 改成 PINYIN_NO_TONE 就好了