Skip to content

Commit c32f49f

Browse files
committed
fix: update property types in DownloadProgress constructor
Adjusted the types of total, delta, and bytesPerSecond from float to int to ensure type consistency and accuracy. This change prevents potential precision issues and aligns with expected data formats.
1 parent 1d45259 commit c32f49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Events/AutoUpdater/DownloadProgress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class DownloadProgress implements ShouldBroadcastNow
1212
{
1313
use Dispatchable, InteractsWithSockets, SerializesModels;
1414

15-
public function __construct(public float $total, public float $delta, public float $transferred, public float $percent, public float $bytesPerSecond) {}
15+
public function __construct(public int $total, public int $delta, public int $transferred, public float $percent, public int $bytesPerSecond) {}
1616

1717
public function broadcastOn()
1818
{

0 commit comments

Comments
 (0)