Yesterday, the motranslator 2.0 has been released. As the version change suggests there are some important changes under the hood.
Full list of changes:Consistently use camelCase in API No more relies on using eval() Depends on symfony/expression-language for calculations
As you can see, yesterday announced SimpleMath is not used in the end and I've moved to use existing library. Somehow I misunderstood library description and I thought that it works asphp, what would be problem for us (or would bring need to add parenthesis around ternary operator as we did with eval() ). But this is not the case and ternary operator behaves sane in ExpressionLanguage, so we're good too use it.
Anyway if you were using MoTranslator, it might be good idea to upgrade and check if API changes affect you.
本文开发（php）相关术语:php代码审计工具 php开发工程师 移动开发者大会 移动互联网开发 web开发工程师 软件开发流程 软件开发工程师