You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys,
I just installed this package and noticed a strange behaviour when an object of class Google\Cloud\RecaptchaEnterprise\V1\RiskAnalysis is hydrated from the json response when creating an assessment (especially the score property). I discovered this bug when I tested recaptcha behaviour with a score threshold of 0.9 and it failed because the score was 0.8999999761581421.
Environment details
OS: MacOS
PHP version: 8.2
Package name and version: googleapis/google-cloud-php-recaptcha-enterprise v1.8.1
Description
Hi guys,
I just installed this package and noticed a strange behaviour when an object of class
Google\Cloud\RecaptchaEnterprise\V1\RiskAnalysis
is hydrated from the json response when creating an assessment (especially the score property). I discovered this bug when I tested recaptcha behaviour with a score threshold of 0.9 and it failed because the score was 0.8999999761581421.Environment details
googleapis/google-cloud-php-recaptcha-enterprise
v1.8.1Code example
The output is the following : (from https://3v4l.org/CgGYZ)
8.0 - 8.3
5.4 - 8.0
The text was updated successfully, but these errors were encountered: