launchdarkly / php-server-sdk

LaunchDarkly Server-side SDK for PHP
https://docs.launchdarkly.com/sdk/server-side/php
Other
36 stars 41 forks source link

0 Number value is not being save #155

Closed ObaydaAlesawi closed 2 years ago

ObaydaAlesawi commented 2 years ago

Describe the bug I have an integration with launchdarkly, but there is an issue when sending number values(only 0) , it's not being updated to user custom properties for some reason, but it works when I cast it to string

To reproduce Send custom data with 0 value to the user

Expected behavior Show the number value in the dashboard

SDK version 4.0

Language version, developer tools PHP 8 Laravel 8

OS/platform Ubuntu

keelerm84 commented 2 years ago

Thank you for the report. This has been filed internally as ticket 138233. We will take a look and let you know!

ObaydaAlesawi commented 2 years ago

@keelerm84 after doing some tests also, the "false" boolean value also is not being saved

keelerm84 commented 2 years ago

This has been fixed in version 4.1.0