-
Notifications
You must be signed in to change notification settings - Fork 33
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
Argument #1 ($num) must be of type float, string given #40
Comments
Change this line in the file /tools/clisetup/setup.func.php
To this
|
We would have to see if this change does not affect other versions of PHP and if not, check the version and based on that, tell it to use one method or another. Anyway, thanks for the suggestion. |
I've recently reinstalled AoWoW locally without using the client-data and I did not encounter this issue, I used PHP 8.x. |
Another user solved using a different PHP version 7.x |
Or we could, check for now, in that line where you want to make the change, the php version, and if it is 8, use this code, and if it is 7, use the current code. Although I personally have never used this code, so I would have to do some research on it first. if (version_compare(PHP_VERSION, '8.0.0', '<'))
{
$updateFields[$k] = number_format($v, 2, '.', '');
}
else
{
$updateFields[$k] = number_format((float)$v, 2, '.', '');
} If you want, I can make a pull request, but I can't test it. If anyone wants to test it, no problem. |
Describe the bug and how to reproduce it
During installation, i received an error and I'm not quite sure how to proceed.
System:
The text was updated successfully, but these errors were encountered: