SDK you're using (please complete the following information):
- Version 2.32 (But the erronious line is present in the latest version as well)
Describe the bug
In PHP 8.1, it issues a warning when implicitly converting the $seconds variable to int in line 80 in StringUtil.php.
To Reproduce
Execute any code that enters the convertStringToDateTime function and enters the else statement
Additional Context
This can be fixed by changing line 80 in String Util.php from:
$datetime->setTimestamp($seconds);
To:
$datetime->setTimestamp((int)$seconds);