Closed runthis closed 4 years ago
PHP will never be able to satisfy this float 1562189704.014800
Sending Slack a string of "1562189704.014800" works perfectly fine.
PHP literally does not have the ability to maintain 1562189704.014800 as a float. It will always remove the trailing zeros unless its a string.
$optionsResolver->setAllowedTypes('text', ['float']);
should be
$optionsResolver->setAllowedTypes('text', ['string']);
If this already exists in a newer version please let me know. Thanks for an awesome tool by the way!
Yep! Php create from string = "1567091229.010100" float = 1567091229.0101
It's fix in https://github.com/jolicode/slack-php-api/pull/45
Thanks!
I have checked, all ok.
Awesome, thanks!!
PHP will never be able to satisfy this float 1562189704.014800
Sending Slack a string of "1562189704.014800" works perfectly fine.
PHP literally does not have the ability to maintain 1562189704.014800 as a float. It will always remove the trailing zeros unless its a string.
$optionsResolver->setAllowedTypes('text', ['float']);
should be
$optionsResolver->setAllowedTypes('text', ['string']);
If this already exists in a newer version please let me know. Thanks for an awesome tool by the way!