The error messages says the code should be passing an integer value instead of a float value. If you check the differences bewteen both pieces of code you will notice I simply added
I'm unsure why it would still print the same error and I don't have time to debug it right now but I certainly will do so before releasing the next package.
(int)
to sanitaze (convert) such values to integers.I'm unsure why it would still print the same error and I don't have time to debug it right now but I certainly will do so before releasing the next package.