[WARN] Fix warning in PHP 8 in Formatter.php #14

Closed
opened 2023-03-27 08:57:33 +02:00 by beu · 1 comment
Owner
tm2020-etc-controller-1  | [27-Mar-2023 06:48:20 UTC] [PHP ERROR '8192']: Implicit conversion from float 27.9 to int loses precision
tm2020-etc-controller-1  | File&Line: /opt/TrackManiaControl/core/Utils/Formatter.php: 92
tm2020-etc-controller-1  | Trace: 
tm2020-etc-controller-1  | #0: ManiaControl\Utils\Formatter::formatTimeH(integer(1674)) in File core/Players/PlayerManager.php on Line 379
tm2020-etc-controller-1  | #1: ManiaControl\Players\PlayerManager->playerDisconnect(array(string(ManiaPlanet.PlayerDisconnect), array(string(Vvjdn4WBRE6irR6Oie7RpA), string())))
tm2020-etc-controller-1  | #2: call_user_func_array(array(object(ManiaControl\Players\PlayerManager), string(playerDisconnect)), array(array(string(ManiaPlanet.PlayerDisconnect), array(string(Vvjdn4WBRE6irR6Oie7RpA), string())))...) in File core/Callbacks/Listening.php on Line 68
tm2020-etc-controller-1  | #3: ManiaControl\Callbacks\Listening->triggerCallbackWithParams(array(array(string(ManiaPlanet.PlayerDisconnect), array(string(Vvjdn4WBRE6irR6Oie7RpA), string())))) in File core/Callbacks/CallbackManager.php on Line 366
tm2020-etc-controller-1  | #4: ManiaControl\Callbacks\CallbackManager->triggerCallback(string(ManiaPlanet.PlayerDisconnect), array(string(ManiaPlanet.PlayerDisconnect), array(string(Vvjdn4WBRE6irR6Oie7RpA), string()))) in File core/Callbacks/CallbackManager.php on Line 346
tm2020-etc-controller-1  | #5: ManiaControl\Callbacks\CallbackManager->handleCallback(array(string(ManiaPlanet.PlayerDisconnect), array(string(Vvjdn4WBRE6irR6Oie7RpA), string()))) in File core/Callbacks/CallbackManager.php on Line 293
tm2020-etc-controller-1  | #6: ManiaControl\Callbacks\CallbackManager->manageCallbacks() in File core/ManiaControl.php on Line 797
tm2020-etc-controller-1  | #7: ManiaControl\ManiaControl->loop() in File core/ManiaControl.php on Line 688
tm2020-etc-controller-1  | #8: ManiaControl\ManiaControl->run() in File ManiaControl.php on Line 58
tm2020-etc-controller-1  | 
tm2020-etc-controller-1  | 
tm2020-etc-controller-1  | Deprecated: Implicit conversion from float 27.9 to int loses precision in /opt/TrackManiaControl/core/Utils/Formatter.php on line 92
``` tm2020-etc-controller-1 | [27-Mar-2023 06:48:20 UTC] [PHP ERROR '8192']: Implicit conversion from float 27.9 to int loses precision tm2020-etc-controller-1 | File&Line: /opt/TrackManiaControl/core/Utils/Formatter.php: 92 tm2020-etc-controller-1 | Trace: tm2020-etc-controller-1 | #0: ManiaControl\Utils\Formatter::formatTimeH(integer(1674)) in File core/Players/PlayerManager.php on Line 379 tm2020-etc-controller-1 | #1: ManiaControl\Players\PlayerManager->playerDisconnect(array(string(ManiaPlanet.PlayerDisconnect), array(string(Vvjdn4WBRE6irR6Oie7RpA), string()))) tm2020-etc-controller-1 | #2: call_user_func_array(array(object(ManiaControl\Players\PlayerManager), string(playerDisconnect)), array(array(string(ManiaPlanet.PlayerDisconnect), array(string(Vvjdn4WBRE6irR6Oie7RpA), string())))...) in File core/Callbacks/Listening.php on Line 68 tm2020-etc-controller-1 | #3: ManiaControl\Callbacks\Listening->triggerCallbackWithParams(array(array(string(ManiaPlanet.PlayerDisconnect), array(string(Vvjdn4WBRE6irR6Oie7RpA), string())))) in File core/Callbacks/CallbackManager.php on Line 366 tm2020-etc-controller-1 | #4: ManiaControl\Callbacks\CallbackManager->triggerCallback(string(ManiaPlanet.PlayerDisconnect), array(string(ManiaPlanet.PlayerDisconnect), array(string(Vvjdn4WBRE6irR6Oie7RpA), string()))) in File core/Callbacks/CallbackManager.php on Line 346 tm2020-etc-controller-1 | #5: ManiaControl\Callbacks\CallbackManager->handleCallback(array(string(ManiaPlanet.PlayerDisconnect), array(string(Vvjdn4WBRE6irR6Oie7RpA), string()))) in File core/Callbacks/CallbackManager.php on Line 293 tm2020-etc-controller-1 | #6: ManiaControl\Callbacks\CallbackManager->manageCallbacks() in File core/ManiaControl.php on Line 797 tm2020-etc-controller-1 | #7: ManiaControl\ManiaControl->loop() in File core/ManiaControl.php on Line 688 tm2020-etc-controller-1 | #8: ManiaControl\ManiaControl->run() in File ManiaControl.php on Line 58 tm2020-etc-controller-1 | tm2020-etc-controller-1 | tm2020-etc-controller-1 | Deprecated: Implicit conversion from float 27.9 to int loses precision in /opt/TrackManiaControl/core/Utils/Formatter.php on line 92 ```
Author
Owner

fixed

fixed
beu closed this issue 2023-04-11 15:55:26 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: beu/TrackManiaControl#14
No description provided.