Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php8版本出现类型溢出错误,建议修复兼容 #19

Open
FFCZ opened this issue May 8, 2023 · 0 comments
Open

php8版本出现类型溢出错误,建议修复兼容 #19

FFCZ opened this issue May 8, 2023 · 0 comments

Comments

@FFCZ
Copy link

FFCZ commented May 8, 2023

yurunsoft\chinese-util\src\Chinese\Driver\Money\Memory.php 行237
$unitIndex = ($length - 1) / 4 >> 0;
环境 php 8.2.5,高版本对数据类型严格检查,数字为222三位时,错误提示 Implicit conversion from float 0.5 to int loses precision
建议修复兼容

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant