Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FCPATH/vendor/planetteamspeak/ts3-php-framework/src/Helper/Convert.php at line 94 #194

Closed
Grepher76380 opened this issue Mar 9, 2023 · 1 comment
Labels
bug Confirmed as a valid bug and requires fix. compatibility Issue with (unsupported) version, tool, or anything outside scope of framework php8.1 PHP 8.1 specific php8.2 PHP 8.2 specific

Comments

@Grepher76380
Copy link

$data['virtualserver_uptime'] = Convert::seconds($ts3->virtualserver_uptime);

error : Implicit conversion from float 144.08388888888888 to int loses precision

FCPATH/vendor/planetteamspeak/ts3-php-framework/src/Helper/Convert.php at line 94

87 /
88 public static function seconds(int $seconds, bool $is_ms = false, string $format = "%dD %02d:%02d:%02d"): string
89 {
90 if ($is_ms) {
91 $seconds = $seconds / 1000;
92 }
93
94 return sprintf($format, $seconds / 60 / 60 / 24, ($seconds / 60 / 60) % 24, ($seconds / 60) % 60, $seconds % 60);
95 }
96
97 /
*
98 * Converts a given codec ID to a human-readable name.
99 *
100 * @param integer $codec
101 * @return string

@ronindesign ronindesign added the bug Confirmed as a valid bug and requires fix. label Mar 9, 2023
@Sebbo94BY Sebbo94BY added compatibility Issue with (unsupported) version, tool, or anything outside scope of framework php8.1 PHP 8.1 specific php8.2 PHP 8.2 specific labels Apr 19, 2023
Sebbo94BY pushed a commit to Sebbo94BY/ts3phpframework that referenced this issue Apr 19, 2023
ronindesign pushed a commit that referenced this issue Aug 3, 2023
Co-authored-by: Sebi94nbg <sebastian.kraetzig@4g-server.eu>
@Sebbo94BY
Copy link
Collaborator

Fixed by PR #202.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed as a valid bug and requires fix. compatibility Issue with (unsupported) version, tool, or anything outside scope of framework php8.1 PHP 8.1 specific php8.2 PHP 8.2 specific
Projects
None yet
Development

No branches or pull requests

3 participants